Skip to content

Commit

Permalink
add descriptions to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LipuFei committed Mar 5, 2015
1 parent 7bee858 commit 0c0037f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tribler/Main/vwxGUI/TorrentStateManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def create_and_seed_metadata_thumbnail(self, thumbnail_file, torrent, modificati
file_name = u"%s.%s" % (thumbnail_hash_str, fmt)

sub_file_path = os.path.join(hexlify(torrent.infohash), file_name)
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
sub_dir_path = os.path.join(u"", hexlify(torrent.infohash))
file_path = os.path.join(u"", sub_file_path)

Expand Down
2 changes: 1 addition & 1 deletion Tribler/Main/vwxGUI/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ def SetData(self, delayedResult):
torrents = delayedResult.get()

for torrent in torrents:
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_path = os.path.join(
u"",
binascii.hexlify(torrent.infohash))
Expand Down
4 changes: 2 additions & 2 deletions Tribler/Main/vwxGUI/list_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def updateDetailsTab(self):
self.channel.Show(show_channel)

# Toggle thumbnails
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(u"",
binascii.hexlify(self.torrent.infohash))
thumb_files = [os.path.join(dp, fn) for dp, _, fns in os.walk(thumb_dir)
Expand Down Expand Up @@ -1656,7 +1656,7 @@ def do_gui(delayedResult):
self.playlist_torrents = delayedResult.get()
bmps = []
for torrent in self.playlist_torrents:
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(u"",
binascii.hexlify(torrent.infohash))
thumb_files = [os.path.join(dp, fn) for dp, _, fns in os.walk(thumb_dir)
Expand Down
8 changes: 4 additions & 4 deletions Tribler/Main/vwxGUI/list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def RefreshData(self, data):
'completed' not in self.original_data.state and 'active' not in self.original_data.state)

def SetThumbnailIcon(self):
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
torcoldir = u""
rel_thumbdir = binascii.hexlify(self.original_data.infohash)
abs_thumbdir = os.path.join(torcoldir, rel_thumbdir)
Expand Down Expand Up @@ -1044,7 +1044,7 @@ def CreateBitmaps(self):

bitmap = None

# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(
u"",
binascii.hexlify(self.original_data.infohash))
Expand Down Expand Up @@ -1390,7 +1390,7 @@ def AddComponents(self, leftSpacer, rightSpacer):
self.guiutility = GUIUtility.getInstance()
self.session = self.guiutility.utility.session

# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(
u"",
binascii.hexlify(modification.torrent.infohash))
Expand Down Expand Up @@ -1465,7 +1465,7 @@ def AddComponents(self, leftSpacer, rightSpacer):
self.guiutility = GUIUtility.getInstance()
self.session = self.guiutility.utility.session

# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(
u"",
binascii.hexlify(modification.torrent.infohash))
Expand Down
2 changes: 1 addition & 1 deletion Tribler/Test/test_metadata_community.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def check_for_modifications():
5, do_overview), 'No valid channel modifications received')

def do_thumbnails(torrentfilename):
# TODO
# FIXME(lipu): fix the thumbnail path to use metadata
thumb_dir = os.path.join(u"", '8bb88a02da691636a7ed929b87d467f24700e490')
self.CallConditional(120, lambda: os.path.isdir(thumb_dir) and len(
os.listdir(thumb_dir)) > 0, lambda: do_modifications(torrentfilename), 'No thumbnails were created')
Expand Down

0 comments on commit 0c0037f

Please sign in to comment.