Giter Site home page Giter Site logo

bash_scripts's People

Contributors

hikaricore avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

bash_scripts's Issues

nas

hello
i use this script with radarr on qnap nas
but i not a expert

trailer.sh | Trailer already exists for Artemis Fowl: | 08:41 |  
trailer.sh | ls: cannot access '(2020)/movie-trailer.*': No such file or directory | 08:41 |  
trailer.sh | ls: cannot access 'Fowl': No such file or directory | 08:41 |  
trailer.sh | ls: cannot access '/share/Multimedia/Video/Films/Artemis': No such file or directory | 08:41 |  
trailer.sh | /share/homes/admin/bash_scripts/trailer.sh: line 21: [: too many arguments

Trailer download failure due to youtube-dl python unicode.

Special characters such as ô in the youtube-dl output path will cause a python unicode related failure:

trailer.sh Trailer downloaded:
trailer.sh ls: cannot access /Movies/Zatôichi.Meets.the.One-Armed.Swordsman.1971/movie-trailer.*: No such file or directory
trailer.sh UnicodeEncodeError: 'ascii' codec can't encode characters in position 25-26: ordinal not in range(128)
trailer.sh os.stat(path)
trailer.sh File "/usr/lib/python2.7/genericpath.py", line 26, in exists
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1750, in ensure_dir_exists
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1899, in process_info
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1635, in process_video_result
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 857, in process_ie_result
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 803, in extract_info
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in download
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 462, in _real_main
trailer.sh File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 472, in main
trailer.sh File "/usr/local/bin/youtube-dl/main.py", line 19, in
trailer.sh exec code in run_globals
trailer.sh File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
trailer.sh "main", fname, loader, pkg_name)
trailer.sh File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
trailer.sh YouTube trailer exists, attempting to download.Traceback (most recent call last):
trailer.sh Trailer does not exist for Zatôichi Meets the One-Armed Swordsman, attempting to grab one.

While this is more of a youtube-dl / python issue and less of a my fucking problem, the ideal solution would be to save the downloaded movie trailer to /tmp first, then move it to the Radarr path.

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.