top of page

#NewEpisodes for Linux

user guide

 Double clik to NewEpisodes executable. You can install it if you want using #InstallerCreator.

In NewEpisodes for Android the website is setted for the start. It's torrentz. In NewEpisodes for Linux you can set your own webpage. That means that you can use NewEpisodes for other reasons except tv series. You can use it for example to find out if an announcement is posted in a website. By clicking "Add new serie" you can add the web location.

A good solution for series is to put the torrenz link searching the season you want, like NewEpisodes for Android does.

After that you just give the name of the serie and serie's code. Serie's code can be something like this; S03E01, where 03 is the number of the season and 01 the number of episode yyou want to start. NewEpisodes will search the code in the website you gave. That can happend with the command:

COUNT=`curl -s "$VCLINK" | grep -c "$VCCODE"`

where VCLINK is the website and VCCODE the code. After the execution of this command in variable COUNT there will be the number of times that CODE founded in LINK.

Now the serie in ready. Click the "Check Now" button from MainWindow, select the serie and find out if there is something new! Because new is always better!

Behind the scenes.

Behind the scenes when you add a serie SetUp.sh script running. This script reads the input with zenity dialogs. After that it creates a file named as the name you gave. This file contains the link the code and some other staff for future features. There is also a text file named names.txt that contains all the names. When you remove a serie the name replaced by "NULL" string.

 

 

BreakingBad.txt

names.txt

Check script now, created an array with all the names of names.txt and put them in a zenity's list. The "read" of file happens with sed, which is install in every linux distro. In this "for loop" below sed reads the ith line of names.txt and puts in variable temp.

 

 

When the user selelects the serie the script searching in the right file and takes the link and the code again with sed. Finally we export the link and the code and we call the check script.

 

 

This last script checks if the link contains the code, informs the user with a notification (there is a try for a mail notification too) and "predicts" the next episode.

 

You can find the complete code of the project here.

 

You can also find a small documentation in Greek here.

 

 

© 2023 by Conferences Website. Proudly created with Wix.com

  • Facebook Classic
  • Google+ App Icon
  • Twitter Classic
bottom of page