Closed solipsist01 closed 6 years ago
Looks like it's the download-npo program that's crashing rather than flexget. If the command is running fine manually, it may be something to do with the locale being declared differently for an interactive shell vs however flexget is being run.
You are absolutely right, thank you for pointing me in the right direction :) I have switched from download-npo to Youtube-DL Youtube-DL doesn't have this problem :)
Perhaps it's a good idea to mention or change to this downloader as well on the npo_watchlist documentation located at https://flexget.com/Plugins/npo_watchlist
Youtube-DL can be told to download the best quality as well. Turned out i was downloading mediocre quality ;)
This is my working config
tasks:
npo_task:
npo_watchlist:
email: your@npo_account_mailaddress.com
password: Y0UrUb3rStr0ngP4ssw0rd
remove_accepted: yes
max_episode_age_days: 30
accept_all: yes
exec:
fail_entries: yes
auto_escape: yes
on_output:
for_accepted:
- youtube-dl -o "/output/{{series_name_plain}}/{{series_name_plain}} - {{series_date | formatdate("%Y-%m-%d") }} - %(title)s.%(ext)s" -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4] {{url}}
This ticket is solved and can be closed :) Thank you.
Expected behaviour:
That the npo_watchlist plugin can download tvshows from NPO with special characters in their show name and/or episode title.
Actual behaviour:
The script crashes. But only when the tvshow has a special character in it. all the other shows work perfectly fine
Steps to reproduce:
Add https://www.npo.nl/creme-de-la-crooswijk/POMS_S_POWN_12998400 to your watchlist on the NPO website Run flexget execute
Further explanation
The show i have added to the NPO watchlist is called Crème de la Crooswijk The special è in the episode name causes the problem.
In the past i had this exact issue with the following episode of a show calld Typisch https://npo.nl/typisch-wielenpolle/12-03-2018/BV_101386660 The episode name is like "Typisch Wielenpôlle" which has a special character ô
Config:
Log:
Full debuglogs here: https://pastebin.com/sQKQQDeR The logging below is the console output of the command flexget -L debug execute with above config file. I have a NPO test account with only this show enabled in the watchlist to keep the logs clean.
Additional information:
In the logging we can see the actual execute string.
download-npo -o "/output/Creme de la Crooswijk" -f "{titel} - {datum} - {aflevering_titel}" https://www.npo.nl/creme-de-la-crooswijk/02-04-2018/POW_03845023
When i copy this string manually into the commandline, it works without any problem. In my opinion this means it's not an issue with the download-npo downloader.
docker run --name=flexget -d -e TZ=Europe/Amsterdam -v <flexget config path>:/flexget -v <input path>:/input -v <output path>:/output solipsist01/flexget-dockerfile-downloadnpo flexget -L debug execute