mx3L / subssupport

GNU General Public License v2.0
7 stars 27 forks source link

not enough arguments for format string #62

Closed cellentano closed 3 years ago

cellentano commented 4 years ago

Vyhladavanie titulkov funguje, ale vacsina sa neda stiahnut - "not enough arguments for format string". Problem je na Titulky.com aj Opensubtitles. subssupport.log

fairbird commented 4 years ago

@athoik Now the issue is as cellentano mentioned (nothing can be download it)

1

athoik commented 4 years ago

Not an issue with quote..

from twisted.web.client import getPage
from twisted.internet import reactor
from urllib2 import quote

queryString = "DARK SKIES"
url = "http://www.opensubtitles.org/libs/suggest.php?format=json2&SubLanguageID=null&MovieName=" + quote(queryString)

def print_and_stop(output):
    print output
    if reactor.running:
       reactor.stop()

if __name__ == '__main__':
    print 'fetching', url
    d = getPage(url)
    d.addCallback(print_and_stop)
    reactor.run()
fetching http://www.opensubtitles.org/libs/suggest.php?format=json2&SubLanguageID=null&MovieName=DARK%20SKIES
{"result":[{"name":"Dark Skies","year":"2013","total":"140","id":148758},{"name":"Dark Skies","year":"1996","total":"100","id":45997}]}
fairbird commented 4 years ago

It is ok ... The problem not from plugin .. from (Subtitles download path) should be in correct path .. . 1 2 .

root@dm920:~# ls /ba/ddsubt The.lord.of.the.rings.the.fellowp.of.the.ring.2001.1080p.bluray.srt

So no problem in plugin works just fine ... Thank you

fairbird commented 4 years ago

But need to update some Prefered site such as (Subscene, subtitles GR)

cellentano commented 4 years ago

There is no problem to search for subtitles. But some of them can be downloaded and open, some of them gives error. My download folder is /tmp/ and it doesnt contain subtitles files. IMG_20200329_212200 IMG_20200329_212213

cellentano commented 4 years ago

btw, I tried it on 3 different receivers with same result

fairbird commented 4 years ago

The best way use your save file on usb or hdd .. Create new folder on usb or hdd and from plugin settings select and set the new path ... Then try again ... /tmp directory on some image some time have some problem ...

cellentano commented 4 years ago

Changed to hdd and also temporary folder and same result.

fairbird commented 4 years ago

remove it .. reboot device and install again .. On my DM920 works just fine only two Preferred doesn't work (Subscene, subtitles GR).

cellentano commented 4 years ago

Did as first step. No success. Maybe it is related to titulky.com and OpenSubtitles.