📜 ⬆️ ⬇️

Bash: We celebrate new series in Myshows.ru

After reading the article , I was inspired by the ease of implementation as well as the site itself. The only thing that seemed redundant to me was the selected Ruby language, the interpreter of which I do not have in the system and I did not want to install it for this script. Therefore, opening api.myshows.ru, wrote a similar script in bash.




')
The code is quite voluminous, so I will not give it in the article. Who wants to read - here is the link .

Installing the script in the system (for Nautilus) is very simple:

1. Download the archive
2. Unpack in ~ / .gnome2 / nautilus-scripts
You can use.

When you first start the script, it will create a settings folder in ~ / .tvshows, ask you to enter a login and password, save them in the same form as login: md5_hash_pass and will not bother you again.

It can process files of the form “Lie.To.Me.s03e08.rus.avi”, “Lie To Me s03e08 rus.avi”, “Lie To Me s03e08 e09 rus LostFilm TV.avi” “Lie.To.Me.s03e08-e09 .rus.avi »and other variations. If you see a combined series of notes both (but not more!).

The script uses bash, grep, wget, notify-send, zenity.

Enjoy watching!

Source: https://habr.com/ru/post/112836/


All Articles