abbi031892 / periscope

Automatically exported from code.google.com/p/periscope
0 stars 0 forks source link

cannot download from Addic7ed #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using Periscope on my Synology DS209 and it's working fine, except 
downloading from Addic7ed (I want to use only OpenSubtitles and Addic7ed).

For example, for file The.Borgias.S01E07.720p.HDTV.x264-CTU, the output is (I 
commented out OpenSubtitles on __init__.py, build & install):

>/opt/local/bin/periscope -l en --debug 
The.Borgias.S01E07.720p.HDTV.x264-CTU.mkv

INFO:root:Searching subtitles for The.Borgias.S01E07.720p.HDTV.x264-CTU.mkv 
with langs ['en']
INFO:root:Searching on Addic7ed
DEBUG:root:dl'ing http://www.addic7ed.com/serie/the_borgias/1/7/the_borgias
DEBUG:root:[Addic7ed] Team from website: set(['fqm'])
DEBUG:root:[Addic7ed] Team from file: set([u'x264', u'ctu', u'hdtv', u'720p'])
DEBUG:root:[Addic7ed] match ? False
WARNING:root:**************************************************
WARNING:root:Downloaded 0 subtitles
WARNING:root:**************************************************

On that webpage there is a "Version 720p-CTU, 0.00 MBs" present.
I even tried to rename my file to "The.Borgias.S01E07.720p-CTU.mkv" and the 
result was the same.

Original issue reported on code.google.com by mtz2...@gmail.com on 9 May 2011 at 12:14

GoogleCodeExporter commented 8 years ago
I have exactly the same problem. Is it possible to fix Addi7ed support? 
Thank you in advance

Original comment by dima...@gmail.com on 12 May 2011 at 5:46

GoogleCodeExporter commented 8 years ago
The teams don't match in your example : FQM on addic7ed, x264-ctu-hdtv-720p.

As periscope cannot guarantee that the subtitles will match, the file is not 
downloaded.

Original comment by patrick....@gmail.com on 18 May 2011 at 9:06

GoogleCodeExporter commented 8 years ago
Thanks for your answer Patrick, but I think you misunderstood me.
The file is named "The.Borgias.S01E07.720p.HDTV.x264-CTU.mkv" and on Addic7ed 
there are several versions, ex.: "Version FQM, 0.00 MBs", "Version 
HDTV.XviD-FQM, 0.00 MBs", "Version 720p-CTU, 0.00 MBs", "Version 720p-DON, 0.00 
MBs", etc.
I don't know how periscope extracts the team from the filename, it could be 
something like "720p.HDTV.x264-CTU" which, of course, is not present.
However, I said I tried renaming the file to "The.Borgias.S01E07.720p-CTU.mkv" 
to see if it matches "Version 720p-CTU, 0.00 MBs", but the message is the same.
I tried some other names for the file, but no success.
For example, I rename the file to "The.Borgias.S01E07.HDTV.mkv"...
The message from periscope was (the file is empty so OpenSubtitles hash gives 
an error):

NFO:root:Searching subtitles for The.Borgias.S01E07.HDTV.mkv with langs ['en']
INFO:root:Searching on OpenSubtitles
ERROR:root:File The.Borgias.S01E07.HDTV.mkv is too small (SizeError < 2**16)
INFO:root:Searching on Addic7ed
DEBUG:root:dl'ing http://www.addic7ed.com/serie/the_borgias/1/7/the_borgias
DEBUG:root:{'status': '200 OK', 'seconds': 0.0040000000000000001, 'token': 
'5vglkn148fbl51hmoh0u67e724'}
DEBUG:root:query: token='5vglkn148fbl51hmoh0u67e724', search='{'sublanguageid': 
'eng'}'
DEBUG:root:Result: {'status': '200 OK', 'seconds': 0.0040000000000000001, 
'data': False}
INFO:root:OpenSubtitles writing 0 items to queue
DEBUG:root:[Addic7ed] Team from website: set(['hdtv', 'xvid-fqm'])
DEBUG:root:[Addic7ed] Team from file: set([u'hdtv'])
DEBUG:root:[Addic7ed] match ? False
WARNING:root:**************************************************
WARNING:root:Downloaded 0 subtitles
WARNING:root:**************************************************

I see that the message "Team from website" is now changed. It says now "Team 
from website: set(['hdtv', 'xvid-fqm'])". However, when I first ran periscope 
on that file, the message was "Team from website: set(['fqm'])", but the 
"Version 720p-CTU, 0.00 MBs" was present on the site.

Ca you please try to download from Addic7ed with the filename I give you? Or 
how can it be renamed to match the correct subtitle from Addic7ed.

Original comment by mtz2...@gmail.com on 18 May 2011 at 10:08

GoogleCodeExporter commented 8 years ago
Ok, I just thought that at the time you ran periscope, the Version 720p-CTU, 
0.00 MBs was not yet present on the website.

I'll test it on my machine.

Cheers

Original comment by patrick....@gmail.com on 18 May 2011 at 10:11

GoogleCodeExporter commented 8 years ago
Is it possible to add that if i have DIMENSION version of file, and on addic7ed 
was posted LOL version, so it will be downloaded anyway? There are some similar 
subtitles for some versions such as LOL and DIMENSION, FQM and CTU, and other 
pairs.

Thank you 

Original comment by dima...@gmail.com on 24 May 2011 at 2:51