[Torrent-search-svnnotify] SF.net SVN: torrent-search:[284] trunk
Status: Inactive
Brought to you by:
glebihan
From: <gle...@us...> - 2011-11-26 09:12:11
|
Revision: 284 http://torrent-search.svn.sourceforge.net/torrent-search/?rev=284&view=rev Author: glebihan Date: 2011-11-26 09:12:05 +0000 (Sat, 26 Nov 2011) Log Message: ----------- Added link to original torrent web page Modified Paths: -------------- trunk/TorrentSearch/AboutDialog.py trunk/TorrentSearch/Plugin.py trunk/TorrentSearch/__init__.py trunk/TorrentSearch/icontheme.py trunk/TorrentSearch/informations.py trunk/TorrentSearch/menus.py trunk/TorrentSearch/new_versions.py trunk/po files/en.po trunk/po files/fr.po trunk/setup-win.py trunk/setup.py trunk/share/locale/en/LC_MESSAGES/torrent-search.mo trunk/share/locale/fr/LC_MESSAGES/torrent-search.mo trunk/torrent-search.iss Modified: trunk/TorrentSearch/AboutDialog.py =================================================================== --- trunk/TorrentSearch/AboutDialog.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/AboutDialog.py 2011-11-26 09:12:05 UTC (rev 284) @@ -50,4 +50,4 @@ def run(self): self.show_all() gtk.AboutDialog.run(self) - self.hide() \ No newline at end of file + self.hide() Modified: trunk/TorrentSearch/Plugin.py =================================================================== --- trunk/TorrentSearch/Plugin.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/Plugin.py 2011-11-26 09:12:05 UTC (rev 284) @@ -266,7 +266,7 @@ return self.status==4 class PluginResult(object): - def __init__(self,label,date,size,seeders=-1,leechers=-1,magnet_link=None,hashvalue=None,category="",nb_comments=0): + def __init__(self,label,date,size,seeders=-1,leechers=-1,magnet_link=None,hashvalue=None,category="",nb_comments=0,orig_url=""): self.size=size self.label=label self.date=date @@ -293,6 +293,7 @@ self.magnet_link="magnet:?xt=urn:btih:"+hashvalue.lower() else: self.magnet_link=None + self.orig_url = orig_url def load_poster_pix(self): thread.start_new_thread(self._do_load_poster_pix, ()) def _do_load_poster_pix(self): Modified: trunk/TorrentSearch/__init__.py =================================================================== --- trunk/TorrentSearch/__init__.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/__init__.py 2011-11-26 09:12:05 UTC (rev 284) @@ -19,7 +19,7 @@ """ import lang -import gtk, AboutDialog, menus, gobject, config, os, imp, Plugin, TorrentSearch, thread, urllib, httplib2, tempfile, sys, downloads, icontheme, re, locale, auth, program_version, datetime, time, categories, HttpQueue, _codecs +import gtk, AboutDialog, menus, gobject, config, os, imp, Plugin, TorrentSearch, thread, urllib, httplib2, tempfile, sys, downloads, icontheme, re, locale, auth, program_version, datetime, time, categories, HttpQueue, _codecs, webbrowser from informations import * from constants import * from exceptions import * @@ -79,13 +79,13 @@ pass while " " in pattern: pattern=pattern.replace(" "," ") + pattern = pattern.lower() + self.add_to_history(pattern) if PLATFORM=="windows": try: pattern = _codecs.utf_8_encode(pattern)[0] except: pass - pattern = pattern.lower() - self.add_to_history(pattern) self._app.run_search(pattern) self.focus_entry() def set_pattern(self,pattern): @@ -269,6 +269,10 @@ i=gtk.ImageMenuItem(gtk.STOCK_INFO) m.add(i) i.connect('activate',lambda w,s:self.show_torrent_infos(s),sel) + if self.lb[sel[0]][0].orig_url: + i=gtk.ImageMenuItem(_("OPEN_WEB_PAGE")) + m.add(i) + i.connect('activate',lambda w,u:self.open_web_page(u),self.lb[sel[0]][0].orig_url) if m.get_children(): m.add(gtk.SeparatorMenuItem()) i=gtk.ImageMenuItem(gtk.STOCK_HELP) @@ -277,6 +281,8 @@ m.show_all() m.popup(None,None,None,3,event.time) return res + def open_web_page(self, url): + webbrowser.open(url) def has_no_better_duplicate(self,model,iter): if not self._app.config["filter_duplicates"]: return True Modified: trunk/TorrentSearch/icontheme.py =================================================================== --- trunk/TorrentSearch/icontheme.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/icontheme.py 2011-11-26 09:12:05 UTC (rev 284) @@ -36,4 +36,4 @@ pass except: pass - \ No newline at end of file + Modified: trunk/TorrentSearch/informations.py =================================================================== --- trunk/TorrentSearch/informations.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/informations.py 2011-11-26 09:12:05 UTC (rev 284) @@ -1,7 +1,7 @@ #! /usr/bin/python # -*- coding=utf-8 -*- -VERSION="0.11.1" +VERSION="0.11.2" APPNAME="Torrent Search" UNIXNAME="torrent-search" LICENSE=""" Modified: trunk/TorrentSearch/menus.py =================================================================== --- trunk/TorrentSearch/menus.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/menus.py 2011-11-26 09:12:05 UTC (rev 284) @@ -62,4 +62,4 @@ item=gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) menu.add(item) item.connect('activate',lambda w:app.show_preferences_dialog()) - app.add_accelerator(item,"activate",ord('p'),gtk.gdk.CONTROL_MASK,gtk.ACCEL_VISIBLE) \ No newline at end of file + app.add_accelerator(item,"activate",ord('p'),gtk.gdk.CONTROL_MASK,gtk.ACCEL_VISIBLE) Modified: trunk/TorrentSearch/new_versions.py =================================================================== --- trunk/TorrentSearch/new_versions.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/TorrentSearch/new_versions.py 2011-11-26 09:12:05 UTC (rev 284) @@ -346,4 +346,4 @@ self.show_all() res=gtk.Dialog.run(self) self.destroy() - return res==gtk.RESPONSE_YES \ No newline at end of file + return res==gtk.RESPONSE_YES Modified: trunk/po files/en.po =================================================================== --- trunk/po files/en.po 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/po files/en.po 2011-11-26 09:12:05 UTC (rev 284) @@ -492,3 +492,5 @@ msgid "POSTED_BY" msgstr "Posted by %s" +msgid "OPEN_WEB_PAGE" +msgstr "Open web page" Modified: trunk/po files/fr.po =================================================================== --- trunk/po files/fr.po 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/po files/fr.po 2011-11-26 09:12:05 UTC (rev 284) @@ -492,3 +492,5 @@ msgid "POSTED_BY" msgstr "Posté par %s" +msgid "OPEN_WEB_PAGE" +msgstr "Ouvrir la page web" Modified: trunk/setup-win.py =================================================================== --- trunk/setup-win.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/setup-win.py 2011-11-26 09:12:05 UTC (rev 284) @@ -70,7 +70,7 @@ return res setup(name='torrent-search', - version="0.11.1", + version="0.11.2", author='Gwendal Le Bihan', author_email='gwe...@gm...', maintainer='Gwendal Le Bihan', Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/setup.py 2011-11-26 09:12:05 UTC (rev 284) @@ -53,7 +53,7 @@ return res setup(name='torrent-search', - version="0.11.0", + version="0.11.2", author='Gwendal Le Bihan', author_email='gwe...@gm...', maintainer='Gwendal Le Bihan', Modified: trunk/share/locale/en/LC_MESSAGES/torrent-search.mo =================================================================== (Binary files differ) Modified: trunk/share/locale/fr/LC_MESSAGES/torrent-search.mo =================================================================== (Binary files differ) Modified: trunk/torrent-search.iss =================================================================== --- trunk/torrent-search.iss 2011-10-31 18:52:27 UTC (rev 283) +++ trunk/torrent-search.iss 2011-11-26 09:12:05 UTC (rev 284) @@ -1,6 +1,6 @@ [Setup] AppName=Torrent Search -AppVersion=0.11.0 +AppVersion=0.11.1 AppCopyright=Copyright (C) 2010-2011 Gwendal Le Bihan AppContact=gwe...@gm... AppPublisher=Gwendal Le Bihan This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |