Git Product home page Git Product logo

h3llrais3r / auto-subliminal Goto Github PK

View Code? Open in Web Editor NEW
41.0 7.0 8.0 153.98 MB

Auto-Subliminal, the automated subliminal subtitle downloader

Home Page: https://h3llrais3r.github.io/Auto-Subliminal/

License: GNU General Public License v3.0

Python 4.15% CSS 53.70% JavaScript 39.32% HTML 1.12% Shell 0.03% TypeScript 1.48% SCSS 0.19%
automated subtitle downloader shows movies subliminal

auto-subliminal's Introduction

Auto-Subliminal License Percentage of issues still open Average time to resolve an issue

Status Master Development
CI CI Status CI Status
Coverage Coverage Status Coverage Status

About

Welcome to Auto-Subliminal, the automated python subtitle downloader!

This is a modified version of the discontinued Auto-Sub Alpha 0.5.8 project (https://code.google.com/p/auto-sub/). It makes use of Subliminal (https://github.com/Diaoul/subliminal) for checking and downloading subtitles.

What it does

  • Easy and straightforward script that scans your TV and MOVIE contents
  • If no SUBTITLE is found (externally or internally) it will attempt to download one by using Subliminal
  • Subliminal will attempt to match the correct version of the subtitle with the file located on the disk
  • Once every day it will do a full rescan of your local content
  • Support to search/save/delete a subtitle individually
  • Support to play a video remotely (need to register a custom protocol handler on your remote machine)

Dependencies

  • To run Auto-Subliminal from source you need Python 3.8 or higher
  • Required dependencies: see requirements.txt

How to use

  • Install python
  • Create a virtual environment and activate it
  • Install all requirements in the virtual environment: pip install -r requirements.txt
  • Start the script: python AutoSubliminal.py
  • If you didn't create a virutal environment, the script creates one for you with the name .venv in the project root and will restart the script in the virtual environment
  • If you didn't install the requirements, the script will install them for you in the virtual environment
  • A web browser should now open
  • Go to the config menu, check the settings and make sure you set at least:
    • Video paths: The root folder(s) of your series and/or movies
    • Default language: Your primary subtitle language
    • Subliminal settings: Your minimal match score and used providers
  • Restart Auto-Subliminal

Enjoy your subtitles!

auto-subliminal's People

Contributors

dependabot[bot] avatar dino-cikatic avatar h3llrais3r avatar mufapu avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-subliminal's Issues

Using insecure websockets when sitting behind nginx reverse proxy

INFO

OS: Linux Mint
Version: 19
Git branch: master
Git version: 3.0
Python version: 3.6.7

What did you do: configured a proxy_redirect from my https host to http://localhost:xxx
What did you expect: the site to work when accessed from https://externaldomain.com/autosubliminal
What happened: error in browser consoleabout using insecure websockets when the page was loaded via ssl.

It seems that autosubliminal is not detecting that the page was loaded over HTTPS. Two possible causes: 1. you don't ever expect the page to be loaded via TLS; 2. You are checking whether the root request comes via http, which is does because TLS terminates at nginx.

Possible solutions: a config point which specifies that everything should use HTTPS/WSS, or looking at window.location.origin to detect https

Add support for movies

Currently Auto-Subliminal only handles subtitles for tv shows. Because Subliminal is also capable of searching subtitles for movies, it should be nice that this is also supported.

Legendas.tv provider credentials

First I have to thank you for the amazing provider and second there's no Field to user and pass on Legendastv, to download subtitles there we need to login first, can you help me?

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Encoding issue ?

Hi,

Just tried your software. I like having a webui for subliminal, this is exactly what I was looking for. I however got an issue that prevents Auto-Subliminal to scan my media disks as follow in the logs :

'ascii' codec can't decode byte 0xc3 in position 13: ordinal not in range(128)

Is this an encoding issue ?

Using latest master, will try with develop.

Doesn't download because of login errors

INFO

Windows 10 1909
3.00
Git branch:
Git version:
Python 2.7.15

I've been having this problem for months but it doesn't fix itself. I've tried selecting other subtitle providers, didn't help. Accounts are just fine on opensubtitles/addic7ed , they work, not banned or something.

ERROR

  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:11:55,571 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:11:56,655 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:02,690 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:03,335 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:04,013 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:04,612 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:05,207 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:05,801 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:06,413 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
2020-01-18 13:12:07,105 ERROR Unexpected error in provider u'addic7ed'
Traceback (most recent call last):
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 134, in list_subtitles_provider
    return self[provider].list_subtitles(video, provider_languages)
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\core.py", line 72, in __getitem__
    provider.initialize()
  File "C:\Users\x\Desktop\Tools\-SubsDL\Auto-Subliminal-master nov 2019\lib\subliminal\providers\addic7ed.py", line 115, in initialize
    raise AuthenticationError(self.username)
AuthenticationError: RRRRR
127.0.0.1 - - [18/Jan/2020:13:12:10] "GET /home/ HTTP/1.1" 200 662526 "http://localhost:8083/home/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
127.0.0.1 - - [18/Jan/2020:13:12:10] "GET /api/settings HTTP/1.1" 200 7090 "http://localhost:8083/home/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
127.0.0.1 - - [18/Jan/2020:13:12:11] "GET /system/websocket HTTP/1.1" 101 - "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"

Possible to set time of scan?

In General perhaps has an ability of changing how often you want a disk scan?
Current 1hour, I've large libary and i would perfer to scan maybe once or twice a day only.

sqlite3.OperationalError: no such column: video_path for every file, scanning under windows

INFO

OS: Windows 10
Version: 19042.1348
Git branch: default
Git version: 4.0.0
Python version: 3.10.0

What did you do: Trying to scan folder containing videos
What did you expect: Video shows up in "Home" menu
What happened: Nothing, pythong error

ERROR

2021-11-27 14:39:47,524 ERROR Error while scanning video file: C:\Users\WDAGUtilityAccount\Desktop\Filmek\[SubsPlease] Komi-san wa, Comyushou desu. - 05 (1080p) [28627A69].mkv
Traceback (most recent call last):
  File "C:\Users\WDAGUtilityAccount\Desktop\Auto-Subliminal-4.0.0\autosubliminal\diskscanner.py", line 89, in _scan_path
    wanted_item = self._scan_file(dirname, filename)
  File "C:\Users\WDAGUtilityAccount\Desktop\Auto-Subliminal-4.0.0\autosubliminal\diskscanner.py", line 102, in _scan_file
    wanted_item = self.wanted_db.get_wanted_item_by_video_path(os.path.join(dirname, filename), ignore_case=True)
  File "C:\Users\WDAGUtilityAccount\Desktop\Auto-Subliminal-4.0.0\autosubliminal\db\main_db.py", line 88, in get_wanted_item_by_video_path
    cursor.execute(self._query_get_by_video_path_ignore_case if ignore_case else self._query_get_by_video_path,
sqlite3.OperationalError: no such column: video_path

Error binding parameter 9

Hi,

Love the app. But i this error very often:

2018-03-07 20:34:15,924 ERROR    Error binding parameter 9 - probably unsupported type.
Traceback (most recent call last):
  File "C:\ProgramData\AutoSubliminal\autosubliminal\diskscanner.py", line 62, in run
    new_wanted_items.extend(walk_dir(videodir))
  File "C:\ProgramData\AutoSubliminal\autosubliminal\diskscanner.py", line 137, in walk_dir
    db.set_wanted_item(wanted_item)
  File "C:\ProgramData\AutoSubliminal\autosubliminal\db.py", line 147, in set_wanted_item
    wanted_item['imdbid']])
InterfaceError: Error binding parameter 9 - probably unsupported type.

Also my webif is most of the time unreachable:

Error 500 Internal Server Error - Please refresh! If this error doesn't go away (after a few minutes), seek help!

Broken init.ubuntu

INFO

OS: Armbian
Version:
Git branch: master
Git version: 2.5.0
Python version: 2.7.12

What did you do:
Tried to set auto-subliminal to run through a init.d service using init.ubuntu file.
What did you expect:
What happened:
Actually, error was reported. I assume it is due to incorrect run directory.
Potential solution:
Changing init.ubuntu script to something like: https://pastebin.com/DxrF2hWw

ERROR

Mar 21 17:32:21 bananapi systemd[1]: Starting LSB: Auto-Subliminal...
Mar 21 17:32:21 bananapi autosublim[1014]: Starting Auto-Subliminal
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Initializing variables and loading config.
Mar 21 17:34:25 bananapi autosublim[1014]: ERROR: Required variable LOGFILE is missing. Using AutoSuliminal.log instead.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Upgrading config version from 8 to 10.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Creating backup of old config file.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: More than 1 upgrade required. Starting subupgrades.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Starting as a daemon.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Initializing variables and loading config.
Mar 21 17:34:25 bananapi autosublim[1014]: ERROR: Required variable LOGFILE is missing. Using AutoSuliminal.log instead.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Upgrading config version from 8 to 10.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Creating backup of old config file.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: More than 1 upgrade required. Starting subupgrades.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Starting as a daemon.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Initializing variables and loading config.
Mar 21 17:34:25 bananapi autosublim[1014]: ERROR: Required variable LOGFILE is missing. Using AutoSuliminal.log instead.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Upgrading config version from 8 to 10.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Creating backup of old config file.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: More than 1 upgrade required. Starting subupgrades.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Starting as a daemon.
Mar 21 17:34:25 bananapi autosublim[1014]: INFO: Disabling console output for daemon.
Mar 21 17:34:26 bananapi autosublim[1014]: CherryPy Checker:
Mar 21 17:34:26 bananapi autosublim[1014]: u'/web/static/js' (root + dir) is not an existing filesystem path.
Mar 21 17:34:26 bananapi autosublim[1014]: section: [/js]
Mar 21 17:34:26 bananapi autosublim[1014]: root: u'/web/static'
Mar 21 17:34:26 bananapi autosublim[1014]: dir: 'js'
Mar 21 17:34:26 bananapi autosublim[1014]: CherryPy Checker:
Mar 21 17:34:26 bananapi autosublim[1014]: u'/web/static/images' (root + dir) is not an existing filesystem path.
Mar 21 17:34:26 bananapi autosublim[1014]: section: [/images]
Mar 21 17:34:26 bananapi autosublim[1014]: root: u'/web/static'
Mar 21 17:34:26 bananapi autosublim[1014]: dir: 'images'
Mar 21 17:34:26 bananapi autosublim[1014]: CherryPy Checker:
Mar 21 17:34:26 bananapi autosublim[1014]: u'/web/static/css' (root + dir) is not an existing filesystem path.
Mar 21 17:34:26 bananapi autosublim[1014]: section: [/css]
Mar 21 17:34:26 bananapi autosublim[1014]: root: u'/web/static'
Mar 21 17:34:26 bananapi autosublim[1014]: dir: 'css'
Mar 21 17:34:26 bananapi autosublim[1014]: CherryPy Checker:

webpage not loading

INFO

**OS: Armbian 5.73
**Version: Debian GNU/Linux 9 (stretch) 4.14.98-mvebu
**Git branch: master
**Git version: 2.11.0
**Python version: 2.7.13

**What did you do: updated distribution and I think python version was also updated
**What did you expect: to be able to open the webpage as before
**What happened: it's not longer opening "500 Internal Server Error"

ERROR

  HOST: 192.168.1.250:8083
  UPGRADE-INSECURE-REQUESTS: 1
  CACHE-CONTROL: no-cache
  Remote-Addr: 192.168.1.108
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  USER-AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
  ACCEPT-LANGUAGE: en-GB,pt;q=0.8,en-US;q=0.5,en;q=0.3
  ACCEPT-ENCODING: gzip, deflate
[20/Mar/2019:15:43:09] HTTP
Traceback (most recent call last):
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cprequest.py", line 630, in respond
    self._do_respond(path_info)
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cprequest.py", line 689, in _do_respond
    response.body = self.handler()
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/vspeed/Auto-Subliminal/autosubliminal/server/web/home.py", line 20, in index
    return PageTemplate(filename='/home/home.mako').render()
  File "/home/vspeed/Auto-Subliminal/autosubliminal/templates/page.py", line 40, in render
    return self.template.render_unicode(*args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/mako/template.py", line 471, in render_unicode
    as_unicode=True)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/cache/mako/layout/page.mako.py", line 35, in render_body
    runtime._include_file(context, u'/layout/inc_menu.mako', _template_uri)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 761, in _include_file
    callable_(ctx, **kwargs)
  File "/home/vspeed/Auto-Subliminal/cache/mako/layout/inc_menu.mako.py", line 70, in render_body
    __M_writer(unicode(autosubliminal.SCANDISK.name))
AttributeError: 'NoneType' object has no attribute 'name'
2019-03-20 15:43:09,927 ERROR [20/Mar/2019:15:43:09] HTTP
Traceback (most recent call last):
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cprequest.py", line 630, in respond
    self._do_respond(path_info)
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cprequest.py", line 689, in _do_respond
    response.body = self.handler()
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/vspeed/Auto-Subliminal/autosubliminal/server/web/home.py", line 20, in index
    return PageTemplate(filename='/home/home.mako').render()
  File "/home/vspeed/Auto-Subliminal/autosubliminal/templates/page.py", line 40, in render
    return self.template.render_unicode(*args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/mako/template.py", line 471, in render_unicode
    as_unicode=True)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/home/vspeed/Auto-Subliminal/cache/mako/layout/page.mako.py", line 35, in render_body
    runtime._include_file(context, u'/layout/inc_menu.mako', _template_uri)
  File "/home/vspeed/Auto-Subliminal/lib/mako/runtime.py", line 761, in _include_file
    callable_(ctx, **kwargs)
  File "/home/vspeed/Auto-Subliminal/cache/mako/layout/inc_menu.mako.py", line 70, in render_body
    __M_writer(unicode(autosubliminal.SCANDISK.name))
AttributeError: 'NoneType' object has no attribute 'name'
192.168.1.108 - - [20/Mar/2019:15:43:10] "GET /home/ HTTP/1.1" 500 2807 "" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
192.168.1.108 - - [20/Mar/2019:15:43:11] "GET /favicon.ico HTTP/1.1" 200 4286 "" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"

launch error

Can't launch from any branch...

INFO: Initializing variables and loading config.


ERROR: Not a valid configuration file! Using default values instead!


ERROR: Required config section is missing. Using default values instead.
ERROR: Required variable PATH is missing. Using current working directory instead.
ERROR: Required variable VIDEOPATHS is missing. Using current working directory instead.
ERROR: Required variable LOGFILE is missing. Using 'AutoSuliminal.log' instead.
ERROR: The webserver section is required. Now setting the default values (0.0.0.0:8083).
WARNING: The webserver is started without authentication.
INFO: Starting output to log.
INFO: Bye.
[15/Oct/2016:10:31:52] ENGINE Bus STARTING
[15/Oct/2016:10:31:52] ENGINE Starting WebSocket processing
[15/Oct/2016:10:31:52] ENGINE Serving on http://0.0.0.0:8083
[15/Oct/2016:10:31:52] ENGINE Bus STARTED
[15/Oct/2016:10:31:53] HTTP
Request Headers:
CONNECTION: keep-alive
REFERER: http://localhost:8083/
HOST: localhost:8083
UPGRADE-INSECURE-REQUESTS: 1
Remote-Addr: 127.0.0.1
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
USER-AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0
ACCEPT-LANGUAGE: en-US,en;q=0.5
ACCEPT-ENCODING: gzip, deflate
[15/Oct/2016:10:31:53] HTTP
Traceback (most recent call last):
File "/tmp/Auto-Subliminal/cherrypy/_cprequest.py", line 678, in respond
inst.set_response()
File "/tmp/Auto-Subliminal/cherrypy/_cperror.py", line 275, in set_response
response.body = ntob("
\n".join(msgs), 'utf-8')
File "/tmp/Auto-Subliminal/cherrypy/_cpcompat.py", line 54, in ntob
assert_native(n)
File "/tmp/Auto-Subliminal/cherrypy/_cpcompat.py", line 89, in assert_native
raise TypeError("n must be a native str (got %s)" % type(n).name)
TypeError: n must be a native str (got unicode)
2016-10-15 10:31:53,927 ERROR [15/Oct/2016:10:31:53] HTTP
Traceback (most recent call last):
File "/tmp/Auto-Subliminal/cherrypy/_cprequest.py", line 678, in respond
inst.set_response()
File "/tmp/Auto-Subliminal/cherrypy/_cperror.py", line 275, in set_response
response.body = ntob("
\n".join(msgs), 'utf-8')
File "/tmp/Auto-Subliminal/cherrypy/_cpcompat.py", line 54, in ntob
assert_native(n)
File "/tmp/Auto-Subliminal/cherrypy/_cpcompat.py", line 89, in assert_native
raise TypeError("n must be a native str (got %s)" % type(n).name)
TypeError: n must be a native str (got unicode)
127.0.0.1 - - [15/Oct/2016:10:31:53] "GET / HTTP/1.1" 500 513 "http://localhost:8083/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0"
127.0.0.1 - - [15/Oct/2016:10:31:54] "GET /favicon.ico HTTP/1.1" 200 4286 "http://localhost:8083/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0"

Can't save files

Windows 7 64-bit
Auto-Subliminal 2.6.0
Python 37 64-bit

If you go to Config > General > Use Language Suffix > Enable
you can no longer save files. It gives the error message:
"Unable to save the subtitle! Please check the log file!"

Here's the log:
2018-12-09 16:49:23,499 INFO Searching for an individual subtitle
2018-12-09 16:49:23,499 INFO Searching subtitles with providers: addic7ed, addic7ed_random_user_agent, legendastv, opensubtitles, podnapisi, shooter, thesubdb, tvsubtitles
2018-12-09 16:49:23,499 INFO Searching subtitles for video: \DISKSTATION\DiskStation\Videos\Movies\A Quiet Place (2018)\A Quiet Place 2018 1080p WEB-DL DD 5.1 x264 [MW]\A Quiet Place 2018 1080p WEB-DL DD 5.1 x264 [MW].mkv
2018-12-09 16:49:23,499 INFO Scanning video
2018-12-09 16:49:24,432 INFO Refining movie video with custom name mappings
2018-12-09 16:49:24,433 INFO Searching for en subtitles
2018-12-09 16:49:28,105 INFO Found 32 subtitles for video
2018-12-09 16:49:41,397 INFO Saving an individual subtitle
2018-12-09 16:49:41,397 ERROR Download item is not complete, skipping

video paths bug

INFO

OS:
windows
Version:
latest dev
Git branch:
Git version:
Python version:
2.7
What did you do:
I have tvshows in sub folders, but your script fails to find all the tv shows.
example:
D:\Done\Series Source\Legend of Bruce Lee, The

In dosbox i see the following error:

None of the configured video paths ([u'D:\Done\Series Source\Legend of Bruce Lee', u' The']) exists, aborting...

It is because of the " , "

When i then look in config general pages again i see the script has removed the , so it displays as:

D:\Done\Series Source\Legend of Bruce Lee
The

Havent tried other characters like dash yet, so might be worth checking also.

What did you expect:
What happened:

ERROR

PASTE LOGS HERE (ENABLE DEBUG LOGGING BEFORE REPRODUCING)

AutoSubliminal not identifying embedded subtitles?

I have source with all laungages attached to the source using 2codes en for enlgish etc...

looking at logs:

2017-12-06 19:53:19,592 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:21,793 ERROR Imdb id not found for Fish Called Wanda, A (1988)
2017-12-06 19:53:21,871 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:24,023 ERROR Imdb id not found for Fistful of Dollars, A (1964)
2017-12-06 19:53:24,131 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:26,907 ERROR Imdb id not found for Five (2016)
2017-12-06 19:53:27,157 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:32,937 ERROR Imdb id not found for Fleetwood Mac, The Dance (1997)
2017-12-06 19:53:34,388 ERROR Imdb id not found for Flight (2012)
2017-12-06 19:53:37,227 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:37,930 ERROR Imdb id not found for The Flintstones & WWE, Stone Age Smackdown (2
2017-12-06 19:53:38,025 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:39,654 ERROR Embedded subtitle track name u'Web (en)' is not a valid language
2017-12-06 19:53:41,342 ERROR Embedded subtitle track name u'Web (en)' is not a valid language

en = english, so why doesnt it identify it?

Error related to git in latest version

Hi h3llrais3r,
I'd like to thank you for all your work and for still updating this project. I'm a complete noob when it comes to python so I don't quite understand this error that I get with the latest version of Auto-subliminal. Apparently, something called "git" is now required? Could you help me out with that?

**Traceback (most recent call last):
File "AutoSubliminal.py", line 134, in
sys.exit(main())
File "AutoSubliminal.py", line 100, in main
import autosubliminal.application
File "D:\Users\nico5\Documents\Auto-Subliminal-master\autosubliminal\application.py", line 16, in
from autosubliminal.versionchecker import VersionChecker
File "D:\Users\nico5\Documents\Auto-Subliminal-master\autosubliminal\versionchecker.py", line 8, in
from git import Repo
File "D:\Users\nico5\Documents\Auto-Subliminal-master\lib\git_init_.py", line 82, in
refresh()
File "D:\Users\nico5\Documents\Auto-Subliminal-master\lib\git_init_.py", line 73, in refresh
if not Git.refresh(path=path):
File "D:\Users\nico5\Documents\Auto-Subliminal-master\lib\git\cmd.py", line 293, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|none|n|0: for no warning or exception
- warn|w|warning|1: for a printed warning
- error|e|raise|r|2: for a raised exception

Example:
export GIT_PYTHON_REFRESH=quiet**

Cannot save config

Issue created by @Baskent93

Hello there,
I am newbie so please execuse me if I am making mistake. I installed it, but unfortunately I can't save my config. My config.properties file is 0 byte, empty file btw. Here's my output in terminal: (ignore UI related stuff, I guess it is because of my low resolution)

 sudo python AutoSubliminal.py 
INFO: Initializing variables and loading config.
********************************************************************
ERROR: Not a valid configuration file! Using default values instead!
********************************************************************
ERROR: Required config section is missing. Using default values instead.
ERROR: Required variable PATH is missing. Using current working directory instead.
ERROR: Required variable VIDEOPATHS is missing. Using current working directory instead.
ERROR: Required variable LOGFILE is missing. Using 'AutoSuliminal.log' instead.
ERROR: The webserver section is required. Now setting the default values (0.0.0.0:8083).
WARNING: The webserver is started without authentication.
INFO: Succesfully created the sqlite database.
INFO: Starting output to log.
INFO: Bye.
[26/Jun/2017:00:24:27] ENGINE Bus STARTING
[26/Jun/2017:00:24:27] ENGINE Starting WebSocket processing
[26/Jun/2017:00:24:27] ENGINE Serving on http://0.0.0.0:8083
[26/Jun/2017:00:24:27] ENGINE Bus STARTED
[0626/002435:ERROR:nss_util.cc(94)] Failed to create /home/kucet/.pki/nssdb directory.
[0626/002435:FATAL:chrome_main_delegate.cc(413)] Check failed: process_type.empty(). Unable to get the user data directory for process type: zygote
#0 0x7f852572779e base::debug::StackTrace::StackTrace()
#1 0x7f8525743227 logging::LogMessage::~LogMessage()
#2 0x56342ec675c3 <unknown>
#3 0x7f8520a2873a <unknown>
#4 0x7f8520a26fcd content::ContentMain()
#5 0x56342ec6690c <unknown>
#6 0x7f8510bcd3f1 __libc_start_main
#7 0x56342ec667da <unknown>

[3451:3451:0626/002436:FATAL:zygote_host_impl_linux.cc(182)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid). 
#0 0x7f6d1821c79e base::debug::StackTrace::StackTrace()
#1 0x7f6d18238227 logging::LogMessage::~LogMessage()
#2 0x7f6d1322ab63 content::ZygoteHostImpl::LaunchZygote()
#3 0x7f6d13229bd2 content::ZygoteCommunication::Init()
#4 0x7f6d1322a14e content::CreateZygote()
#5 0x7f6d12ee4d57 content::BrowserMainLoop::EarlyInitialization()
#6 0x7f6d12ee7eaf <unknown>
#7 0x7f6d12ee10f2 content::BrowserMain()
#8 0x7f6d1351cce4 <unknown>
#9 0x7f6d1351bff1 content::ContentMain()
#10 0x55ac349bf90c <unknown>
#11 0x7f6d036c23f1 __libc_start_main
#12 0x55ac349bf7da <unknown>

Aborted (core dumped)

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:66:13: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:97:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:98:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:104:39: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:107:39: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:158:33: The :focused pseudo-class is deprecated. Use :focus instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:174:38: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:175:40: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:176:53: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:177:55: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:178:53: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:179:55: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:180:48: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:181:50: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:182:44: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:183:46: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:184:52: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:185:54: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:186:52: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:187:54: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:188:47: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:189:49: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:190:21: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:191:23: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:196:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:286:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(firefox:3465): Gtk-WARNING **: Theme parsing error: gtk-lubuntu.css:309:15: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'

(firefox:3465): Gtk-WARNING **: Theme directory  imported-Humanity/192 of theme Lubuntu has no size field

127.0.0.1 - - [26/Jun/2017:00:26:02] "GET /home/ HTTP/1.1" 200 14183 "http://localhost:8083/system/shutdown" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:05] "GET /system/message HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:16] "GET /config/general/ HTTP/1.1" 200 41943 "http://localhost:8083/home/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:17] "GET /system/message HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
[26/Jun/2017:00:26:30] HTTP 
Request Headers:
  CONNECTiON: keep-alive
  REFERER: http://localhost:8083/config/general/
  ORiGiN: http://localhost:8083
  Remote-Addr: 127.0.0.1
  Content-Length: 375
  USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36
  HOST: localhost:8083
  UPGRADE-INSECURE-REQUESTS: 1
  CACHE-CONTROL: max-age=0
  ACCEPT-ENCODiNG: gzip, deflate, br
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  COOKiE: _pk_id.1.1fff=29cd23a4e1565e50.1498335985.1.1498337352.1498335985.
  ACCEPT-LANGUAGE: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
  Content-Type: application/x-www-form-urlencoded
[26/Jun/2017:00:26:30] HTTP 
Traceback (most recent call last):
  File "/home/kucet/AS/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/home/kucet/AS/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/kucet/AS/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/kucet/AS/autosubliminal/webserver.py", line 257, in save
    return Config.save_and_restart_if_needed()
  File "/home/kucet/AS/autosubliminal/webserver.py", line 201, in save_and_restart_if_needed
    restart = config.write_config()
  File "/home/kucet/AS/autosubliminal/config.py", line 1433, in write_config
    save_config_section()
  File "/home/kucet/AS/autosubliminal/config.py", line 974, in save_config_section
    cfg.set(section, "videopaths", str(videopaths))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0130' in position 12: ordinal not in range(128)
2017-06-26 00:26:30,497 ERROR [26/Jun/2017:00:26:30] HTTP 
Traceback (most recent call last):
  File "/home/kucet/AS/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/home/kucet/AS/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/kucet/AS/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/kucet/AS/autosubliminal/webserver.py", line 257, in save
    return Config.save_and_restart_if_needed()
  File "/home/kucet/AS/autosubliminal/webserver.py", line 201, in save_and_restart_if_needed
    restart = config.write_config()
  File "/home/kucet/AS/autosubliminal/config.py", line 1433, in write_config
    save_config_section()
  File "/home/kucet/AS/autosubliminal/config.py", line 974, in save_config_section
    cfg.set(section, "videopaths", str(videopaths))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0130' in position 12: ordinal not in range(128)
127.0.0.1 - - [26/Jun/2017:00:26:30] "POST /config/general/save HTTP/1.1" 500 513 "http://localhost:8083/config/general/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:39] "GET /system/message HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:43] "GET /log/viewLog HTTP/1.1" 200 9101 "http://localhost:8083/config/general/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:44] "GET /system/message HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:53] "GET /home/ HTTP/1.1" 200 14183 "http://localhost:8083/log/viewLog" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36"
127.0.0.1 - - [26/Jun/2017:00:26:54] "GET /system/message HTTP/1.1" 101 - "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36" `

Can't change any setting

Since Version 2.2.0, when I try to change any setting like the Video Path in the Config tab in the browser window, I always get an error 500. When I restart the server, it defaults to the auto-subliminal folder again. I am therefore unable to get the program to work.

Series '2 Broke Girls' not recognized

ok ive changed my folder naming in sonarr to:
{Series CleanTitle}

Ive just add series 2 Broke Girls
in folder:

{Series CleanTitle}

Path to vdieo:

D:\Test Rebuild\Done\Series Source

in that folder is only one folder named:
2 Broke Girls

which is what sonarr created, a eposide filename is as follows:

2.Broke.Girls.S01E01.REPACK.720p.HDTV.x264-IMMERSE

but no matter what, I can not get your script to see any of the eposides:-/

The logfile says:

Processing file: 2 Broke Girls - S01E01 - HDTV-720p Proper - x264 AC3 - IMMERSE - [2011-09-19].mkv
2018-01-30 21:03:18,292 DEBUG    Guessing file info
2018-01-30 21:03:18,427 DEBUG    Guess result: MatchesDict([('season', [1, 2]), ('title', u'Broke Girls'), ('episode', 1), ('format', u'HDTV'), ('screen_size', u'720p'), ('other', u'Proper'), ('proper_count', 1), ('video_codec', u'h264'), ('audio_codec', u'AC3'), ('release_group', u'IMMERSE'), ('date', datetime.date(2011, 9, 19)), ('container', u'mkv'), ('mimetype', u'video/x-matroska'), ('type', u'episode')])
2018-01-30 21:03:18,427 DEBUG    Dict from guess: {'source': u'HDTV', 'codec': u'h264', 'episode': 1, 'quality': u'720p', 'title': u'Broke Girls', 'season': [1, 2], 'year': None, 'type': u'episode', 'releasegrp': u'IMMERSE'}
2018-01-30 21:03:18,427 DEBUG    Video guessed as episode
2018-01-30 21:03:18,428 DEBUG    Enriching dict with metadata
2018-01-30 21:03:18,428 DEBUG    Getting tvdb id for 'Broke Girls'
2018-01-30 21:03:18,430 DEBUG    Tvdb id from cache: -1
2018-01-30 21:03:18,430 WARNING  Tvdb id not found in cache for 'Broke Girls'
2018-01-30 21:03:18,430 DEBUG    Enriched dict: {'videopath': u'D:\\Test Rebuild\\Done\\Series Source\\2 Broke Girls\\Season 1\\2 Broke Girls - S01E01 - HDTV-720p Proper - x264 AC3 - IMMERSE - [2011-09-19].mkv', 'season': [1, 2], 'releasegrp': u'IMMERSE', 'year': None, 'quality': u'720p', 'episode': 1, 'tvdbid': None, 'title': u'Broke Girls', 'languages': [], 'source': u'HDTV', 'codec': u'h264', 'timestamp': u'2018-01-28 21:00:34', 'type': u'episode'}
2018-01-30 21:03:18,430 ERROR    Could not scan the video path (D:\Test Rebuild\Done\Series Source\2 Broke Girls), skipping...
2018-01-30 21:03:18,542 DEBUG    Running thread process
2018-01-30 21:03:18,542 DEBUG    Cannot get wanted queue lock, skipping
2018-01-30 21:03:18,667 ERROR    Error binding parameter 6 - probably unsupported type.

so its not seing the "2" in "2 broke Girls" so not adding into db?

Test anti-captcha providers

I need help in testing the anti-captcha providers as I don't have any account.
Changes have been implemented in latest development branch.
Please provide your feedback if it's working (or not) with the addic7ed_custom provider and one of the following anti-captcha providers:

  • anti-captcha.com

  • deathbycaptcha.com

Configuration is done in the Subliminal configuration page.
image

strange filename causes disk scan to stop

INFO

**OS: ubuntu
**Version: 16.04
**Git branch: master
**Git version: 2.5.0
**Python version: 2.7.12

**What did you do: scan disk
**What did you expect:
**What happened: scan stopped on a specific file

ERROR

(First thanks for a great project!)

The disk scan stopped with:

2018-04-30 18:50:00,507 ERROR Could not scan the video path (/mnt/nas/HTPC8/TV Shows), skipping it
Traceback (most recent call last):
File "/home/odroid/Auto-Subliminal/autosubliminal/diskscanner.py", line 65, in run
new_wanted_items.extend(walk_dir(videodir))
File "/home/odroid/Auto-Subliminal/autosubliminal/diskscanner.py", line 140, in walk_dir
db.set_wanted_item(wanted_item)
File "/home/odroid/Auto-Subliminal/autosubliminal/db.py", line 149, in set_wanted_item
wanted_item['tvdbid'],
InterfaceError: Error binding parameter 10 - probably unsupported type.

It seems multiple codecs are guessed from the filename (which has both x264 and xvid in its name). And a list can not be handled by the insert statement.

relevant debug log:

2018-04-30 18:50:00,395 INFO     Processing file: Code.37.S03E02.NL.VLAAMS.720p.HDTV.x264-SHOWGEMiST_xvid.avi
2018-04-30 18:50:00,395 DEBUG    Guessing file info
2018-04-30 18:50:00,477 DEBUG    Guess result: MatchesDict([('title', u'Code 37'), ('season', 3), ('episode', 2), ('language', <Language [nl]>), ('episode_title', u'VLAAMS'), ('screen_size', u'720p'), ('format', u'HDTV'), ('video_codec', [u'h264', u'XviD']), ('release_group', u'SHOWGEMiST'), ('container', u'avi'), ('mimetype', u'video/x-msvideo'), ('type', u'episode')])
2018-04-30 18:50:00,478 DEBUG    Validating guess
2018-04-30 18:50:00,478 DEBUG    Video guessed as episode
2018-04-30 18:50:00,478 DEBUG    Dict from guess: {'source': u'HDTV', 'codec': [u'h264', u'XviD'], 'episode': 2, 'quality': u'720p', 'title': u'Code 37', 'season': 3, 'year': None, 'type': u'episode', 'releasegrp': u'SHOWGEMiST'}
2018-04-30 18:50:00,478 DEBUG    Enriching dict with metadata
2018-04-30 18:50:00,495 DEBUG    Getting tvdb id for Code 37
2018-04-30 18:50:00,501 DEBUG    Tvdb id from cache: 110991
2018-04-30 18:50:00,502 DEBUG    Enriched dict: {'videopath': u'/mnt/nas/HTPC8/TV Shows/Code 37/S03/Code.37.S03E02.NL.VLAAMS.720p.HDTV.x264-SHOWGEMiST_xvid.avi', 'season': 3, 'releasegrp': u'SHOWGEMiST', 'year': None, 'quality': u'720p', 'episode': 2, 'tvdbid': 110991, 'title': u'Code 37', 'languages': [], 'source': u'HDTV', 'codec': [u'h264', u'XviD'], 'timestamp': u'2016-05-24 13:00:47', 'type': u'episode'}
2018-04-30 18:50:00,507 ERROR    Could not scan the video path (/mnt/nas/HTPC8/TV Shows), skipping it
Traceback (most recent call last):
  File "/home/odroid/Auto-Subliminal/autosubliminal/diskscanner.py", line 65, in run
    new_wanted_items.extend(walk_dir(videodir))
  File "/home/odroid/Auto-Subliminal/autosubliminal/diskscanner.py", line 140, in walk_dir
    db.set_wanted_item(wanted_item)
  File "/home/odroid/Auto-Subliminal/autosubliminal/db.py", line 149, in set_wanted_item
    wanted_item['tvdbid'],
InterfaceError: Error binding parameter 10 - probably unsupported type.

Can this be run on a synology nas

INFO

OS:
Version:
Git branch:
Git version:
Python version:

What did you do:
What did you expect:
What happened:
I didn't know where to ask but can this be run from a synology NAS?

ERROR

PASTE LOGS HERE (ENABLE DEBUG LOGGING BEFORE REPRODUCING)

Error while searching for subtitles for some episodes

INFO

OS:
Windows-10-10.0.16299
Version:
2.6.0b1 (LATEST)
Git branch:
development
Git version:
ee7afb3
Python version:
2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]

What did you do:
Manual serch for

Vikings | 5 | 1,2 | HDTV | 720P | H264 | KILLERS

What did you expect:
find subtitles
What happened:
nothing happend

ERROR

2018-04-27 10:49:52,164 INFO     Searching for an individual subtitle
2018-04-27 10:49:52,167 DEBUG    Getting wanted queue lock
2018-04-27 10:49:52,171 INFO     Searching subtitles with providers: opensubtitles
2018-04-27 10:49:52,176 INFO     Searching subtitles for video: E:\Serial\Vikings\Season 5\Vikings.S05E01-E02.720p.HDTV.x264-KILLERS.mkv
2018-04-27 10:49:52,180 INFO     Scanning video
2018-04-27 10:49:53,236 INFO     Refining episode video with custom name mappings
2018-04-27 10:49:53,239 DEBUG    Using episode min match score: 330
2018-04-27 10:49:53,243 INFO     Searching for cs subtitles
2018-04-27 10:49:53,244 DEBUG    Searching for all subtitles for video
2018-04-27 10:49:53,539 INFO     Found 3 subtitles for video
2018-04-27 10:49:56,194 ERROR    Releasing wanted queue lock with force due to exception
Traceback (most recent call last):
  File "D:\apps\Auto-Subliminal-dev\autosubliminal\util\queue.py", line 43, in wrapper
    return func(*args, **kwargs)
  File "D:\apps\Auto-Subliminal-dev\autosubliminal\subchecker.py", line 167, in search_subtitle
    for index, s in enumerate(subtitles)], key=operator.itemgetter(2), reverse=True):
  File "D:\apps\Auto-Subliminal-dev\lib\subliminal\score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "D:\apps\Auto-Subliminal-dev\lib\subliminal\providers\opensubtitles.py", line 81, in get_matches
    matches |= guess_matches(video, guessit(self.movie_release_name, {'type': 'episode'}))
  File "D:\apps\Auto-Subliminal-dev\lib\subliminal\subtitle.py", line 241, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

Search deadline should be configurable

This is a feature request and not a bug, so I've removed the template.

It would be really great if you could configure the deadline parameters in item.py.

# A subtitle will be searched on each run, as long as the file is not older than 4 weeks
search_deadline = datetime.timedelta(weeks=4)

# Once a video file is older than the search deadline, it will only be searched once a week
search_delta = datetime.timedelta(weeks=1)

Improve searching by combining language flags

As u may know I current search for all following languages:
ar,bg,cs,da,de,el,en,es,fi,fr,he,hi,hu,it,ja,ko,lt,lv,mk,nl,no,pl,pt,ro,ru,sk,sl,sv,th,tr,uk,vi,zh

I believe AS (auto subliminal) currently searches each episode/movies for 1 language @ a time. but subliminal allows multiple languages combinations such as:

subliminal download -l ar -l bg -l cs -l da -l de -l el -l en -l es -l fi -l fr -l he -l hi -l hu -l it -l ja -l ko -l lt -l lv -l mk -l nl -l no -l pl -l pt -l ro -l ru -l sk -l sl -l sv -l th -l tr -l uk -l vi -l zh -p opensubtitles -p podnapisi -p shooter -p thesubdb -p tvsubtitles -e UTF8 "D:\Test\Done\Arrested Development"

Might improve search speed also:)

opensubtitles SSL error

INFO

Tried to download subs, but got an opensubtitles SSL error in logs.

OS:
Windows 10
Version:
1607
Git branch:
master
Git version:
2.6
Python version:
3.7

What did you do:
search for subtitles by pressing System > Check subtitles
What did you expect:
find some subtitles (mostly from opensubtitles)
What happened:
couldn't find subtitles, but the subtitles does exist on opensubtitles (could download with vlsub).

Could be related to this?
slackapi/python-slack-sdk#334

ERROR

  File "C:\Users\username\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 1117, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051)
127.0.0.1 - - [30/Oct/2018:19:52:37] "GET /home/searchSubtitle/2/hu HTTP/1.1" 200 638 "http://localhost:8083/home/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [30/Oct/2018:19:52:37] "GET /js/home-manualsearch.js?v=c8485e31-5eb5-4174-bcc0-5faa0ba0aade HTTP/1.1" 200 3313 "http://localhost:8083/home/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [30/Oct/2018:20:09:02] "GET /log/viewLog HTTP/1.1" 200 700600 "http://localhost:8083/home/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
127.0.0.1 - - [30/Oct/2018:20:09:04] "GET /system/websocket HTTP/1.1" 101 - "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"

Auto-sub not opening webpage

INFO

OS: Windows 10
Version: 1903
Git branch:
Git version:
Python version: 2.7.17

What did you do: I upgraded Python and then downgraded it again, also rebooted between. So currently have version 2.7.17. I used to have auto subliminally and it worked, only after updating Python to a 3.0 version it doesn't work anymore.
What did you expect: Auto subliminally to boot like normal.
What happened: Nothing happens, very short command prompt opens and then closes, nothing starts.

ERROR

PASTE LOGS HERE (ENABLE DEBUG LOGGING BEFORE REPRODUCING)

not find srts?

I made those changes to the script so 2 broke girls was identifed and added.

"D:\Test\Done\Series Source\24 Legacy\Season 1\24.Legacy.S01E01.WEBDL-720p.x264.AC3-ITSat.mkv"

This is eps 1 of 24 legacy. But doesnt seem to find any subs for them?
The is certainly english srts for this available.
in the log:

2018-02-03 13:54:53,880 INFO [DiskScanner :: autosubliminal.diskscanner] D:\Test\Done\Series Source\24 Legacy\Season 1\24.Legacy.S01E01.WEBDL-720p.x264.AC3-ITSat.mkv [u'en', u'ar', u'bg', u'cs', u'da', u'de', u'el', u'en', u'es', u'fi', u'fr', u'he', u'hi', u'hu', u'it', u'ja', u'ko', u'lt', u'lv', u'mk', u'nl', u'no', u'pl', u'pt', u'ro', u'ru', u'sk', u'sl', u'sv', u'th', u'tr', u'uk', u'vi', u'zh']
2018-02-03 13:54:53,880 INFO [DiskScanner :: autosubliminal.diskscanner] Finished round of local disk checking
2018-02-03 13:54:54,868 INFO [MainThread :: autosubliminal.scheduler] Starting thread SubChecker
2018-02-03 13:54:55,250 INFO [MainThread :: autosubliminal.scheduler] Starting thread VersionChecker
2018-02-03 13:54:56,033 INFO [MainThread :: main] Application started, going into a loop to keep the main thread going
2018-02-03 13:55:03,226 INFO [CP Server Thread-8 :: autosubliminal.scheduler] Running thread DiskScanner
2018-02-03 13:55:04,931 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 1 seconds
2018-02-03 13:55:06,934 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 2 seconds
2018-02-03 13:55:09,936 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 3 seconds
2018-02-03 13:55:13,937 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 4 seconds
2018-02-03 13:55:18,940 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 5 seconds
2018-02-03 13:55:24,941 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 6 seconds

the last line in log:

2018-02-04 13:09:58,677 INFO [DiskScanner :: autosubliminal.scheduler] Delaying thread DiskScanner with 408 seconds

been running since yesterday and no subtitles download for any of the eps of series 24 Legacy

Trace error

I love your tool, it succesfully runs on my Ubuntu 16.04 VM. However, it does not run on my VPS (also Ubuntu 16.04) where I would like it to run, I receive the following error:

ubuntu@vpsbox:/tmp/Auto-Subliminal$ sudo python AutoSubliminal.py                INFO: Initializing variables and loading config.

********************************************************************
ERROR: Not a valid configuration file! Using default values instead!
********************************************************************
ERROR: Required config section is missing. Using default values instead.
ERROR: Required variable PATH is missing. Using current working directory instead.
ERROR: Required variable VIDEOPATHS is missing. Using current working directory instead.
ERROR: Required variable LOGFILE is missing. Using 'AutoSuliminal.log' instead.
ERROR: The webserver section is required. Now setting the default values (0.0.0.0:8083).
WARNING: The webserver is started without authentication.
Traceback (most recent call last):
  File "AutoSubliminal.py", line 134, in <module>
    sys.exit(main())
  File "AutoSubliminal.py", line 100, in main
    import autosubliminal.application
  File "/tmp/Auto-Subliminal/autosubliminal/application.py", line 15, in <module>
    from autosubliminal.subchecker import SubChecker
  File "/tmp/Auto-Subliminal/autosubliminal/subchecker.py", line 15, in <module>
    from subliminal.providers.thesubdb import TheSubDBSubtitle
  File "/tmp/Auto-Subliminal/lib/subliminal/providers/thesubdb.py", line 13, in <module>
    language_converters.register('thesubdb = subliminal.converters.thesubdb:TheSubDBConverter')
  File "/tmp/Auto-Subliminal/lib/babelfish/converters/__init__.py", line 275, in register
    raise ValueError('Already registered')
ValueError: Already registered

Would someone know what to do to fix this? I tried running the setup again and I've tried a working config from the Ubuntu VM setup. There is no log unfortunately. Tnx!

[Request] Make additional language as an option when Default language is missing

Hi

i want to ask if will be possible to make additional language serchable ony if default language is missing...
for example i have file default language is CS and additional is SK... these language are simmilar...
so i want that primary download language CS and search for SK only if there is no CS language..
when CS language is present dont search for additional language anymore.
but if is there only additional language SK try to search for default language...

i hope you understand it

ValueError: ' fr' is not a valid language

passing this along via complaint I saw on irc

They just installed latest version via git on ubuntu 18.04 and ran into tracebacks.
Looks like the leading space is causing the value error?

Traceback (most recent call last):
  File "/home/keith/tmp/Auto-Subliminal-3.0.0/autosubliminal/diskscanner.py", line 94, in _scan_path
    wanted_item = self._scan_file(dirname, filename)
  File "/home/keith/tmp/Auto-Subliminal-3.0.0/autosubliminal/diskscanner.py", line 132, in _scan_file
    wanted_languages=wanted_languages)
  File "/home/keith/tmp/Auto-Subliminal-3.0.0/autosubliminal/util/filesystem.py", line 131, in check_missing_subtitle_languages
    additional_language = Language.fromietf(language)
  File "/home/keith/tmp/Auto-Subliminal-3.0.0/lib/babelfish/language.py", line 126, in fromietf
    language = cls(language_subtag)
  File "/home/keith/tmp/Auto-Subliminal-3.0.0/lib/babelfish/language.py", line 82, in __init__
    raise ValueError('%r is not a valid language' % language)
ValueError: ' fr' is not a valid language

web browser config on headless Raspberry Pi?

Hi, I'm wanna use your script with sonarr/radarr.. Can i ask few questions:
so i must:

  1. install python
  2. download your repository *** where is the best place to put that folder on raspberry pi? ***
  3. navigate to that folder in terminal and enter "python setup.py install"
  4. also from that folder in terminal enter "python AutoSubliminal.py"
  5. A web browser should now open - what if i dont have web browser on raspberry pi and want to enter that web adress from my pc in the same local network?

Also, can you tell me can i call for your script with sonarr/radarr with "Custom Post Processor Script" that is executed after tv show/movie is downloaded/moved

Thanks and sorry for noob questions

Addic7ed : loggin failed

INFO

OS: Windows
Version: 3.0.0
Git branch: master
Git version: cbae06b
Python version: 3.7.3

What did you do: Used Addic7ed account
What did you expect: Successefully get subtitles from Addic7ed
What happened: Loggin failed

It seem that it's waiting for a captcha, even if that when you log manually with browser, ti do not ask anything ... I printed the begining of the http response so you can see the first word are "Bad captcha".

ERROR

2019-04-22 12:06:55,098 ERROR Unexpected error in provider 'addic7ed'
Traceback (most recent call last):
File "G:\Documents\Dev\Git\Auto-Subliminal\lib\subliminal\core.py", line 134, in list_subtitles_provider
return self[provider].list_subtitles(video, provider_languages)
File "G:\Documents\Dev\Git\Auto-Subliminal\lib\subliminal\core.py", line 72, in getitem
provider.initialize()
File "G:\Documents\Dev\Git\Auto-Subliminal\lib\subliminal\providers\addic7ed.py", line 115, in initialize
raise AuthenticationError(self.username)
subliminal.exceptions.AuthenticationError: MyAccount
2019-04-22 12:06:55,306 ERROR b'Bad captcha\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML

Need help - Could not scan the video path

Ok, so, obviously I don't know how to get this up and running.

I have tried running:
sudo python setup.py install - all seems fine
sudo because 'permission denied' otherwise

python AutoSubliminal.py - starts the program - I can access and configure but can't seem to get it to access my media

OSMC
Version: 2018-02
Git branch:
Git version: Latest stable
Python version: Python 2.7.13

I have tried running:
sudo python setup.py install - all seems fine
sudo because 'permission denied' otherwise

python AutoSubliminal.py - starts the program - I can access and configure but can't seem to get it to access my media

ERROR

2018-03-22 20:08:34,390 ERROR    Could not scan the video path (/mnt/3TB/Movies/), skipping it
Traceback (most recent call last):
  File "/home/osmc/Subliminal/autosubliminal/diskscanner.py", line 65, in run
    new_wanted_items.extend(walk_dir(videodir))
  File "/home/osmc/Subliminal/autosubliminal/diskscanner.py", line 99, in walk_dir
    for dirname, dirnames, filenames in os.walk(os.path.join(path)):
  File "/usr/lib/python2.7/os.py", line 286, in walk
    if isdir(join(top, name)):
  File "/usr/lib/python2.7/posixpath.py", line 71, in join
    path +=  b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

Read imdb id from metadata file

Hi, i noticed a lot of movies, shows etc.. are not being idenfied correctly according to IMDB.
As mostl ibaries would have a metadata file in same folder as the source file, and named the same as source file, perhaps if you could grab the IMBD from that file instead???

source = Goodbye Berlin (2016)
metadata normally = Goodbye Berlin (2016).nfo
my metadata file = Goodbye Berlin (2016).xml

in both the IMDB value is in below content:
tt4911940
tt4911940
As you would also ensure your metadata is perfect:)

UserWarning: You don't have the C version of NameMapper installed!

INFO

**OS:**Synology DSM6
Version:
**Git branch:**master
Git version:
**Python version:**2.7.13

**What did you do:**Followed instructions runnig it on a virtual python environment
What did you expect:
**What happened:**When namemapper is configured it returns an error that it needs the C version of NameMapper

ERROR

/volume1/@appstore/virtualenv/autosubliminal/lib/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
  "\nYou don't have the C version of NameMapper installed! "

Any solution to get rid of this error and have name mapping working?

Call Diskscanner and SubChecker actions manually, without webgui

Hello,

Is it possible to invoke the Diskscanner and SubChecker processes manually via cmd or a batch file or is it only possible via the web gui? (I'm running the program with pythonw.exe, so the console is hidden.)
What I'd like to achieve is, when I download something, my torrent client would call this script automatically to run a folder scan and check for subtitles. The video paths are preconfigured, I'd just like to call the search immediately after the download finishes.

Thanks in advance.

Implement ability to force encoding

Hi ther,e just testing your script out and looks awesome, so thankyou!!

I do think you should enable ability to force the encoding type as sublinimal now allows,

-e UTF8

for example ^^

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

npm
web/autosubliminal/package.json
  • @angular/animations 17.3.7
  • @angular/cdk 17.3.7
  • @angular/common 17.3.7
  • @angular/compiler 17.3.7
  • @angular/core 17.3.7
  • @angular/forms 17.3.7
  • @angular/platform-browser 17.3.7
  • @angular/platform-browser-dynamic 17.3.7
  • @angular/router 17.3.7
  • bootstrap 4.6.2
  • font-awesome 4.7.0
  • jquery 3.7.1
  • lodash-es 4.17.21
  • moment 2.30.1
  • natural-compare 1.4.0
  • ng-lazyload-image 9.1.3
  • ngx-countdown 17.1.1
  • ngx-mask 17.0.7
  • ngx-webstorage 13.0.1
  • ngx-window-token 7.0.0
  • primeicons 7.0.0
  • primeng 17.16.0
  • rxjs 7.8.1
  • strftime 0.10.2
  • tslib 2.6.2
  • zone.js 0.14.5
  • @angular-devkit/build-angular 17.3.6
  • @angular-eslint/builder 17.3.0
  • @angular-eslint/eslint-plugin 17.3.0
  • @angular-eslint/eslint-plugin-template 17.3.0
  • @angular-eslint/schematics 17.3.0
  • @angular-eslint/template-parser 17.3.0
  • @angular/cli 17.3.6
  • @angular/compiler-cli 17.3.7
  • @types/jasmine 4.6.4
  • @types/jasminewd2 2.0.13
  • @types/jquery 3.5.29
  • @types/lodash-es 4.17.12
  • @types/natural-compare 1.4.3
  • @types/node 18.19.31
  • @types/strftime 0.9.8
  • @typescript-eslint/eslint-plugin 7.8.0
  • @typescript-eslint/parser 7.8.0
  • concurrently 8.2.2
  • copyfiles 2.4.1
  • eslint 8.57.0
  • husky 9.0.11
  • jasmine-core 4.6.0
  • karma 6.4.3
  • karma-chrome-launcher 3.2.0
  • karma-coverage-istanbul-reporter 3.0.3
  • karma-jasmine 4.0.2
  • karma-jasmine-html-reporter 1.7.0
  • line-ending-corrector 1.0.1
  • rimraf 5.0.5
  • ts-node 10.9.2
  • typescript 5.3.3
  • node 18.20.2
  • node 18.20.2
poetry
pyproject.toml
  • python >=3.8.1,<4
  • babelfish 0.6.0
  • CherryPy 18.9.0
  • deathbycaptcha 0.1.1
  • dogpile.cache 1.3.3
  • enzyme 0.4.1
  • ffsubsync 0.4.25
  • GitPython 3.1.43
  • gntp 1.0.3
  • guessit 3.8.0
  • html5lib 1.1
  • imdbpie 4e5fc35fdafbf8b1d51b54dd722f757f99f98d46
  • jsonpickle 3.0.4
  • langdetect 1.0.9
  • packaging 24.0
  • pysrt 1.1.2
  • python-anticaptcha 1.0.0
  • python-dateutil 2.9.0.post0
  • python-twitter 3.5
  • rebulk 3.2.0
  • requests 2.31.0
  • requests-oauthlib 1.4.1
  • schema 0.7.7
  • simplejson 3.19.2
  • subliminal 6ac2fa23ee5baa7d8452552edaa7c4a8a00d237a
  • tailer 0.4.1
  • tvdb_api 32228cc4af864398198e280bbafbd1ec98567d8f
  • Unidecode 1.3.8
  • ws4py 0.5.1
  • coverage 7.5.1
  • pytest 8.2.0
  • pytest-mock 3.14.0
  • requests-mock 1.12.1
  • vcrpy 6.0.1
  • autopep8 2.1.0
  • flake8 7.0.0
  • isort 5.13.2
  • mypy 1.10.0
  • pigar 2.1.4
  • types-requests 2.31.0.6
  • types-setuptools 69.5.0.20240423
  • types-python-dateutil 2.9.0.20240316

  • Check this box to trigger a request for Renovate to run again on this repository

Add support to pt-BR

Subliminal has pt-BR as a supported language using the following command:
subliminal download -l pt-BR -p thesubdb -p opensubtitles

Portuguese from portugal is totally different language.
Is it possible to add support to Brazilian Portuguese as a default language?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.