pt-BR work with CLI but not with download_best_subtitles()
See original GitHub issueIs there something I am missing?
CLI:
subliminal download -l pt-BR "12.Monkeys.S04E01.720p.HDTV.x264-KILLERS[rarbg].mkv"
Collecting videos [####################################] 100%
1 video collected / 0 video ignored / 0 error
Python call to download_best_subtitles():
Traceback (most recent call last):
File "get_subtitle.py", line 39, in download_subtitle
best_subtitles = download_best_subtitles([video], {Language('pt-BR')}, providers=None)
File "C:\\Python27\\lib\\site-packages\\babelfish\\language.py", line 82, in __init__
raise ValueError(\%r is not a valid language\ % language)
ValueError: \pt-BR\ is not a valid language
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
php curl works from cli but not from apache - Stack Overflow
When I look at my error logs, I get "PHP Fatal error: Call to undefined function curl_init()" as if the extension isn't installed...
Read more >Can't Access 3650 Web Panel (but works on CLI)
I've had no issues accessing the panels via web on both switches, saved my passwords locally in Roboform too. Suddenly, my login is...
Read more >"Open With" works in file explorer, but not through CLI
I have installed tuxguitar which can open .gp3 files when I double click on them, in the file explorer. This works perfectly fine....
Read more >start-instances working from console but not from AWS CLI
We are trying to use the CLI to start and stop several EC2 instances. While testing commands on single instances we have noticed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t get why it’s surprising… cli accepts string and the best way to define a language is ietf code. Using it as a library, you can create a language object the way you want using the constructor that accepts multiple parameters, or any of the static methods. This is your choice, how to create the language object.
Definitely me misunderstanding but based on documentation, I was expecting both CLI and API to be using the same syntaxe for language code. Anyway, I had it working a long time ago using the mentioned fix. Thanks.