Difference between revisions of "Pytvshows"

From ArchWiki
Jump to: navigation, search
(Installation)
m
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:Internet and Email (English)]]
+
[[Category:Internet Applications]]
[[Category:HOWTOs (English)]]
+
 
+
== Pytvshows ==
+
 
+
 
Pytvshows is a python script for downloading .torrent files from trvrss.net or eztv.it. The configuration is very easy and pytvshows remembers the series you already watched.
 
Pytvshows is a python script for downloading .torrent files from trvrss.net or eztv.it. The configuration is very easy and pytvshows remembers the series you already watched.
  
 
== Installation ==
 
== Installation ==
[http://aur.archlinux.org/packages.php?ID=15263 Pytvshows] is in [[AUR]]
+
 
 +
[[pacman|Install]] {{AUR|pytvshows}} from the [[AUR]].
  
 
== Configuration ==
 
== Configuration ==
  
Create a file named .pytvshows.cfg in your home directory:
+
Create a file named {{ic|.pytvshows.cfg}} in your home directory.
#nano .pytvshows.cfg 
+
  
 
In this file you are going to fill in your series in this syntax for example south park:
 
In this file you are going to fill in your series in this syntax for example south park:
Line 25: Line 21:
  
 
note that x and y are variables, you can fill in the season and episode number you already have watched like x = 14 & y = 12
 
note that x and y are variables, you can fill in the season and episode number you already have watched like x = 14 & y = 12
also note that + means a whitespace, you must always add this symbol for a whitespace if you don't do that the script will not work.
+
also note that + means a whitespace, you must always add this symbol for a whitespace if you do not do that the script will not work.
  
 
== Running pytvshows ==
 
== Running pytvshows ==
  
 
Now you can start running pytvshows by default the output directory is your ~/  you can change that:
 
Now you can start running pytvshows by default the output directory is your ~/  you can change that:
  #pytvshows --output_dir/home/<user>/torrents/
+
  # pytvshows --output_dir=/home/<user>/torrents/
  
 
For more options run:
 
For more options run:
  #pytvshows --help
+
  # pytvshows --help
  
 
Let your bittorent client watch the directory where you download your torrents so they are automatically  added.
 
Let your bittorent client watch the directory where you download your torrents so they are automatically  added.
  
 
If you want to run pytvshows in the background, first make a bash script:
 
If you want to run pytvshows in the background, first make a bash script:
# #!/bin/bash
 
  echo -n “tvshows.sh - “; date # log current date & time
 
  pytvshows  --output_dir=/home/<user>/torrents/ --verbose >> ~/scripts/pytvshows.log
 
  
As you can see, log the output of pytvshows
+
{{bc|<nowiki>
 +
#!/bin/bash
 +
echo -n “tvshows.sh - “; date # log current date & time
 +
pytvshows --output_dir=/home/<user>/torrents/ --verbose >> ~/scripts/pytvshows.log
 +
</nowiki>}}
  
 +
As you can see, log the output of pytvshows.
  
 
Then add this script to cron:
 
Then add this script to cron:
Line 51: Line 49:
 
Please use a other time otherwise it will get to many hits at the same time.
 
Please use a other time otherwise it will get to many hits at the same time.
  
 +
== See also ==
  
== Reference ==
 
 
http://sourceforge.net/projects/pytvshows/
 
http://sourceforge.net/projects/pytvshows/

Revision as of 11:51, 29 August 2013

Pytvshows is a python script for downloading .torrent files from trvrss.net or eztv.it. The configuration is very easy and pytvshows remembers the series you already watched.

Installation

Install pytvshowsAUR from the AUR.

Configuration

Create a file named .pytvshows.cfg in your home directory.

In this file you are going to fill in your series in this syntax for example south park:

#[South+Park]
 episode = x
 season = y
 
 [Dirty+Jobs]
 episode = 5
 season = 5

note that x and y are variables, you can fill in the season and episode number you already have watched like x = 14 & y = 12 also note that + means a whitespace, you must always add this symbol for a whitespace if you do not do that the script will not work.

Running pytvshows

Now you can start running pytvshows by default the output directory is your ~/ you can change that:

# pytvshows --output_dir=/home/<user>/torrents/

For more options run:

# pytvshows --help

Let your bittorent client watch the directory where you download your torrents so they are automatically added.

If you want to run pytvshows in the background, first make a bash script:

#!/bin/bash
echo -n “tvshows.sh - “; date # log current date & time 
pytvshows  --output_dir=/home/<user>/torrents/ --verbose >> ~/scripts/pytvshows.log

As you can see, log the output of pytvshows.

Then add this script to cron:

#crontab -e (as normal user, using pytvshows as root is not recommended)
#30 * * * * /home/<user>/scripts/tvshows.sh 

Please use a other time otherwise it will get to many hits at the same time.

See also

http://sourceforge.net/projects/pytvshows/