subliminal icon indicating copy to clipboard operation
subliminal copied to clipboard

Napiprojekt provider is not working.

Open darzur opened this issue 7 years ago • 8 comments

Hi,

It look like Napiprojekt is not on a list of available providers. Tried narrowing subtitle searching to only Opensubtitles and Napiprojekt and then got an error.

darzur avatar Apr 02 '17 10:04 darzur

Just started subliminal with --debug flag and found no entries about Napiprojekt. Look below at output. Subliminal calculates hash for Napiprojekt but then doesn't search for subtitles.

pi@RPi2:~ $ subliminal --debug download -l pl '/mnt/NSA320/Filmy/Avas Possessions (2015)'
Collecting videos  [####################################]  100%  /mnt/NSA320/Filmy/Avas Possessions (2015)DEBUG:subliminal.cli:Collecting path /mnt/NSA320/Filmy/Avas Possessions (2015)
DEBUG:subliminal.core:Walking directory '/mnt/NSA320/Filmy/Avas Possessions (2015)'
INFO:subliminal.core:Scanning video 'Avas Possessions 2015 720p WEB-DL DD5 1 H264-FGT.mkv' in '/mnt/NSA320/Filmy/Avas Possessions (2015)'
DEBUG:subliminal.core:Size is 2825510796
DEBUG:subliminal.core:Computed hashes {'thesubdb': '801de5bd9d20b5d5853d92cf2807f9f7', 'opensubtitles': 'e96a325eda904cd2', 'shooter': '8d8bfb062609ce3ac139313965ebbf83;ddf686ab6a39d5cfe62a28d32839b6a7;93286c7554816bae2da6826c75e9b76c;e37719ed94650d176312cf5ad80a5df3', 'napiprojekt': 'c11638d37810a6c3f2fc9c68b31230e2'}
DEBUG:subliminal.core:Walking directory '/mnt/NSA320/Filmy/Avas Possessions (2015)/extrafanart'
DEBUG:subliminal.core:Walking directory '/mnt/NSA320/Filmy/Avas Possessions (2015)/extrathumbs'
DEBUG:subliminal.core:Found subtitles {}
INFO:subliminal.core:Refining video with metadata
DEBUG:subliminal.refiners.metadata:Found video_codec h264
DEBUG:subliminal.refiners.metadata:Found audio_codec AC3
DEBUG:subliminal.refiners.metadata:Found embedded subtitle set([<Language [und]>])
INFO:subliminal.core:Refining video with omdb
WARNING:subliminal.refiners.omdb:No results
Collecting videos  [####################################]  100%
1 video collected / 0 video ignored / 0 error
Downloading subtitles  [####################################]  100%  Avas Possessions 2015 720p WEB-DL DD5 1 H264-FGT.mkvINFO:subliminal.core:Listing subtitles with provider 'legendastv' and languages set([<Language [pl]>])
INFO:subliminal.core:Initializing provider legendastv
INFO:subliminal.core:Skipping provider 'shooter': no language to search for
INFO:subliminal.core:Listing subtitles with provider 'podnapisi' and languages set([<Language [pl]>])
INFO:subliminal.core:Initializing provider podnapisi
INFO:subliminal.core:Skipping provider 'tvsubtitles': not a valid video
INFO:subliminal.providers.podnapisi:Searching subtitles {'sK': 'Avas Possessions', 'sXML': 1, 'sY': 2015, 'sL': 'pl'}
INFO:subliminal.core:Listing subtitles with provider 'opensubtitles' and languages set([<Language [pl]>])
INFO:subliminal.core:Initializing provider opensubtitles
INFO:subliminal.core:Skipping provider 'addic7ed': not a valid video
INFO:subliminal.providers.opensubtitles:Logging in
INFO:subliminal.core:Skipping provider 'subscenter': no language to search for
INFO:subliminal.core:Listing subtitles with provider 'thesubdb' and languages set([<Language [pl]>])
INFO:subliminal.core:Initializing provider thesubdb
INFO:subliminal.providers.thesubdb:Searching subtitles {'action': 'search', 'hash': '801de5bd9d20b5d5853d92cf2807f9f7'}
DEBUG:subliminal.providers.thesubdb:No subtitles found
DEBUG:subliminal.providers.podnapisi:No subtitles found
DEBUG:subliminal.providers.opensubtitles:Logged in with token 'xxxxxxxxxxxxxxxxxxxxxxxx'
INFO:subliminal.providers.opensubtitles:Searching subtitles [{'moviebytesize': '2825510796', 'sublanguageid': u'pol', 'moviehash': 'e96a325eda904cd2'}, {'sublanguageid': u'pol', 'tag': 'Avas Possessions 2015 720p WEB-DL DD5 1 H264-FGT.mkv'}, {'query': 'Avas Possessions', 'sublanguageid': u'pol'}]
DEBUG:subliminal.providers.opensubtitles:No subtitles found
Downloading subtitles  [####################################]  100%
DEBUG:subliminal.core:Terminating initialized providers
INFO:subliminal.core:Terminating provider thesubdb
INFO:subliminal.core:Terminating provider podnapisi
INFO:subliminal.core:Terminating provider legendastv
INFO:subliminal.core:Terminating provider opensubtitles
INFO:subliminal.providers.opensubtitles:Logging out
DEBUG:subliminal.providers.opensubtitles:Logged out
Downloaded 0 subtitle

darzur avatar Apr 03 '17 18:04 darzur

I think napiproject provider is still disabled because it wasn't always downloading subtitles in srt format. You can add the provider in extensions.py yourself and rebuild.

MoshiMoshi0 avatar Apr 04 '17 13:04 MoshiMoshi0

Thanks for that. I think I'll be able to add it to extensions.py but how to rebuild?

darzur avatar Apr 04 '17 14:04 darzur

Changed extensions.py as below. What else should I do to enable napiprojekt?

#: Provider manager
provider_manager = RegistrableExtensionManager('subliminal.providers', [
    'addic7ed = subliminal.providers.addic7ed:Addic7edProvider',
    'legendastv = subliminal.providers.legendastv:LegendasTVProvider',
    'napiprojekt = subliminal.providers.napiprojekt:NapiProjektProvider',
    'opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider',
    'podnapisi = subliminal.providers.podnapisi:PodnapisiProvider',
    'shooter = subliminal.providers.shooter:ShooterProvider',
    'subscenter = subliminal.providers.subscenter:SubsCenterProvider',
    'thesubdb = subliminal.providers.thesubdb:TheSubDBProvider',
    'tvsubtitles = subliminal.providers.tvsubtitles:TVsubtitlesProvider'
])

darzur avatar Apr 04 '17 15:04 darzur

You also need to add the same line in setup.py.

Then to build run python setup.py install in subliminal root dir. I'm assuming you cloned the repo.

I dont know if it will override the pip version of subliminal, im no expert in python dev.

MoshiMoshi0 avatar Apr 04 '17 16:04 MoshiMoshi0

I'm afraid it's beyond me. I've installed it with pip install subliminal not from repo. Don't have setup.py in subliminal root dir and have no idea how to build it.

darzur avatar Apr 04 '17 16:04 darzur

It's disable until I finish the microdvd format converter. Subliminal currently depends on the subtitle being in subrip format.

Diaoul avatar Apr 07 '17 10:04 Diaoul

@Diaoul in SZ I'm using pysubs2 which handles MicroDVD. (Example)

pannal avatar Apr 21 '17 20:04 pannal

Has this project been abandoned, or how has this been completed?

pannal avatar May 17 '24 01:05 pannal

not the person who closed it, but i can't reproduce any of the failures with napiprojekt on current develop version ( which will be released soon )

ptrcnull avatar May 17 '24 01:05 ptrcnull

and to answer the other question, quite the contrary, the project is in the progress of (slowly) being revived

ptrcnull avatar May 17 '24 01:05 ptrcnull