From 7cfc9b8c23fce18d2c75b77a8f95f68df6845aba Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Thu, 26 Jul 2018 14:22:22 +0200 Subject: [PATCH] The code to retrieve the torrent's url was not correct anymore with the modifications made in the last few commits. --- peertube.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peertube.py b/peertube.py index f5a6d21..335b8e0 100755 --- a/peertube.py +++ b/peertube.py @@ -75,6 +75,8 @@ def list_videos(): # TODO: Get the best quality torrent given settings and/or available bandwidth # See how they do that in the peerTube client's code min_size = -1 + resp = urllib2.urlopen(inst + '/api/v1/videos/' + video['uuid']) + metadata = json.load(resp) for f in metadata['files']: if f['size'] < min_size or min_size == -1: # TODO: See if using magnet wouldn't be better