Modified:
trunk/main.py
trunk/nonsrc/setup.sh
trunk/po/de_DE.po
trunk/po/de_DE/LC_MESSAGES/gvdown.mo
Log:
some little typos
Modified: trunk/main.py
==============================================================================
--- trunk/main.py (original)
+++ trunk/main.py Fri Nov 23 06:09:01 2007
@@ -58,7 +58,7 @@
def run(self):
req = urllib2.Request(self.url)
- req.add_header('User-Agent', 'Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)')
+ req.add_header('User-Agent', '(g)vdown (http://vdown.googlecode.com)')
con = urllib2.urlopen(req)
self.content_len = con.info()['Content-length']
arived_len = 0
@@ -94,6 +94,7 @@
class get_data(threading.Thread):
"""
Fetch data from videograb.de
+ FIXME: make this a bit prettier
"""
def __init__(self, url):
threading.Thread.__init__(self)
@@ -130,19 +131,19 @@
"""
Check if we can write into a folder (creates a testfile there)
"""
- if os.path.isfile(dir+"/vdown_test.testfile"): # do not delete the
test file if it exists
+ if os.path.isfile(os.path.join(dir, "vdown_test.testfile")): # do
not delete the test file if it exists
EXISTS = True
else:
EXISTS = False
try:
- file = open(dir+"/vdown_test.testfile", "wb")
+ file = open(os.path.join(dir, "vdown_test.testfile"), "wb")
file.close()
except IOError:
return False
else:
if not EXISTS:
- os.remove(dir+"/vdown_test.testfile")
+ os.remove(os.path.join(dir, "vdown_test.testfile"))
return True
class configuration(ConfigParser.RawConfigParser):
Modified: trunk/nonsrc/setup.sh
==============================================================================
--- trunk/nonsrc/setup.sh (original)
+++ trunk/nonsrc/setup.sh Fri Nov 23 06:09:01 2007
@@ -20,6 +20,6 @@
exit 0' > /usr/bin/vdown
chmod +x /usr/bin/vdown
chmod +x /usr/bin/gvdown
-echo ""
+echo "---"
echo "Installation was successful, if no errors were shown."
echo "You can now start vdown with 'vdown URL1 URL2' and so on, you
can start gvdown with Applications->Internet->GVDOWN or 'gvdown'."
Modified: trunk/po/de_DE.po
==============================================================================
--- trunk/po/de_DE.po (original)
+++ trunk/po/de_DE.po Fri Nov 23 06:09:01 2007
@@ -205,7 +205,7 @@
#: main.py:208
#, fuzzy, python-format
msgid "Download link : %(dlink)s"
-msgstr "Lade Video #%(number)s"
+msgstr "Downloadlink : %(dlink)s"
#: main.py:209
#, python-format
@@ -243,7 +243,7 @@
#: gvdown.glade.h:8
msgid "Enter the URL of the video:"
-msgstr "Bitte dir URL des Videos eingeben:"
+msgstr "Bitte die URL des Videos eingeben:"
#: gvdown.glade.h:9
msgid "Filename extension"
Modified: trunk/po/de_DE/LC_MESSAGES/gvdown.mo
==============================================================================
Binary files. No diff available.