mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00:00
d97bb7174d
Change improve provider title processing. Change improve handling erroneous JSON responses. Change improve find show with unicode characters. Change improve result for providers Omgwtf, SpeedCD, Transmithenet, Zoogle. Change validate .torrent files that contain optional header data. Fix case where an episode status was not restored on failure. Add raise log error if no wanted qualities are found. Change add un/pw to Config/Media providers/Options for BTN API graceful fallback (can remove Api key for security). Change only download torrent once when using blackhole. Add Cloudflare module 1.6.8 (be0a536) to mitigate CloudFlare (IUAM) access validator. Add Js2Py 0.43 (c1442f1) Cloudflare dependency. Add pyjsparser 2.4.5 (cd5b829) Js2Py dependency.
12 lines
457 B
Bash
12 lines
457 B
Bash
#!/usr/bin/env bash
|
|
|
|
|
|
# install all the dependencies and pack everything into one file babel_bundle.js (converted to es2015).
|
|
npm install babel-core babel-cli babel-preset-es2015 browserify
|
|
browserify babel.js -o babel_bundle.js -t [ babelify --presets [ es2015 ] ]
|
|
|
|
# translate babel_bundle.js using js2py -> generates babel.py
|
|
echo "Generating babel.py..."
|
|
python -c "import js2py;js2py.translate_file('babel_bundle.js', 'babel.py');"
|
|
rm babel_bundle.js
|
|
|