Update README.md

Anne Jan Brouwer [2016-03-16 21:41]
Update README.md
Filename
README.md
diff --git a/README.md b/README.md
index d7632d7..1ceb214 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 ## Introduction

 SwarmTv is a broadcatching tool with a stable commandline interface.
-A QT interface is in the works at the moment, a development version can be found in the [SVN](http://swarmtv.nl/QtSwarmtv.html).
+A QT interface is in the works at the moment, a development version can be found in the [GIT](https://github.com/annejan/swarmtv).
 Swarmtv handles RSS feeds and downloads using NZB and torrents.
 RSS data can be filtered using regexp driven filters that can be defined using many parameters.
 Swarmtv is tested on Ubuntu Linux on both 32 and 64-bit operating systems and currently being ported to [windows](http://swarmtv.nl/windows.html).
@@ -16,29 +16,25 @@ Libraries :

 | library | home page |
 | --- | --- |
-| Sqlite3 | [http://www.sqlite.org/
-](http://www.sqlite.org/) |
+| Sqlite3 | [http://www.sqlite.org/](http://www.sqlite.org/) |
 | Libpcre | [http://www.pcre.org/](http://www.pcre.org/) |
-| LibCURL | [http://curl.haxx.se/libcurl/
-](http://curl.haxx.se/libcurl/) |
-| LibXML2 | [http://xmlsoft.org/
-](http://xmlsoft.org/) |
+| LibCURL | [http://curl.haxx.se/libcurl/](http://curl.haxx.se/libcurl/) |
+| LibXML2 | [http://xmlsoft.org/](http://xmlsoft.org/) |
 | optional |
 | GlibDBus | [http://www.freedesktop.org/wiki/Software/dbus](http://www.freedesktop.org/wiki/Software/dbus) |
-| Libesmtp | [http://www.stafford.uklinux.net/libesmtp/
-](http://www.stafford.uklinux.net/libesmtp/) |
+| Libesmtp | [http://www.stafford.uklinux.net/libesmtp/](http://www.stafford.uklinux.net/libesmtp/) |

 Build command:
-
-# cmake .
-# make
-# make install
-
+```
+$ cmake .
+$ make
+$ make install
+```
 Setup Swarmtv configuration values.
-
-# swarmtv --list-config
-# swarmtv --set-config="<item>:<value>"            <- have a look at the man page for the settings and there meaning.
-
+```
+$ swarmtv --list-config
+$ swarmtv --set-config="<item>:<value>"            <- have a look at the man page for the settings and there meaning.
+```
 The directory to here the meta files are downloaded **must exist** and be writable to the user running Swarmtv.
 Change the directory using # swarmtv -C "torrentdir:<path your torrents need to go>"
 Or create the directory on the default path # mkdir ~/torrents ; mkdir ~/nzb
@@ -52,17 +48,17 @@ For examples look at the examples.sh file
 ## Setting up config variables

 List configuration values :
-
-# swarmtv --list-config
-
+```
+$ swarmtv --list-config
+```
 Set a config value :
-
-# swarmtv --set-config <name:value>
-
+```
+$ swarmtv --set-config <name:value>
+```
 Example :
-
-# swarmtv --set-config="refresh:1800"
-
+```
+$ swarmtv --set-config="refresh:1800"
+```
 Config values :

 | Value | Description |
@@ -84,30 +80,30 @@ Config values :

 To start Swarmtv in daemon mode :

-# swarmtv --run
+$ swarmtv --run

 To start Swarmtv without detaching from the terminal :

-# swarmtv --run --nodetach
+$ swarmtv --run --nodetach

 In order to see if Swarmtv is still running :

-# tail -f ~/.swarmtv/swarmtv.log
+$ tail -f ~/.swarmtv/swarmtv.log

 To stop Swarmtv
-
-# kill `cat ~/.swarmtv/lockfile.pid`
-
+```
+$ kill `cat ~/.swarmtv/lockfile.pid`
+```
 ## Adding sources

 ### Example
-
-<pre># swarmtv --add-source "Eztv" --url="http://www.ezrss.it/feed/" --source-parser "defaultrss" --metatype "torrent"
-
+```
+$ swarmtv --add-source "Eztv" --url="http://www.ezrss.it/feed/" --source-parser "defaultrss" --metatype "torrent"
+```
 or
-
-# swarmtv --add-source "Piratebay" --url="http://rss.thepiratebay.org/205" --source-parser "defaultrss" --metatype "torrent"
-</pre>
+```
+$ swarmtv --add-source "Piratebay" --url="http://rss.thepiratebay.org/205" --source-parser "defaultrss" --metatype "torrent"
+```

 The option --source-parser selects what filter is to be used in order to convert the RSS into database records in the 'newtorrents' table.
 The option --metatype tells Swarmtv what kind of meta files to expect (NZB or Torrent).
@@ -115,11 +111,9 @@ The option --metatype tells Swarmtv what kind of meta files to expect (NZB or To
 ## Adding simple filters

 ### Example
-
-<pre>swarmtv --add-simple='House' --nodup='newer' --title='^house' --source='(Eztv|TV Torrents)' --exclude='hunters international'
---max-size='700.00 MB' --min-size='200.00 MB'
-
-</pre>
+```
+$ swarmtv --add-simple='House' --nodup='newer' --title='^house' --source='(Eztv|TV Torrents)' --exclude='hunters international' --max-size='700.00 MB' --min-size='200.00 MB'
+```

 This filter filters for all torrents with the name beginning with "house" and excludes "House hunters international" which we don't want.
 To avoid downloading the HD version of the House episodes I added a maximal size of 700Mb, a good quality episode should be at least 200Mb.
@@ -134,22 +128,23 @@ In the man page of Swarmtv, you can find more information on simple filters.
 Filters are used to get the content you want, and avoid duplicate downloads. Filters are made up from 2 parts, the filters part that filters out the candidates for download. And the avoid duplicates part, that looks if a match the filters has already found isn't downloaded before. Both filter parts are sqlite3 queries, you can create them as you like, as long as the following rows are selected for the filter: link, title, pubdate, category, season, episode note: the fields should be selected in this exact order. The duplicate query can select any field it wants because the programs only looks at row count any row count of => 1 indicates a torrent has been downloaded before.

 Filters can be tested with the -q option together with the -F and -T option. The query is executed on a sandboxed database, where all 'new' flags are set to 'Y'. After the query has executed, a list of files is printed that would have been downloaded by this rule.
- When this list consists of the correct files and no doubles are found, the filter should be okay. By removing the -q option from the command line, the filter can be inserted. Note: for this feature to work relevant data must be present in the newtorrents table.
+When this list consists of the correct files and no doubles are found, the filter should be okay. By removing the -q option from the command line, the filter can be inserted. Note: for this feature to work relevant data must be present in the newtorrents table.

 ### Examples of SQL filters

 #### Test filter:

-<pre>swarmtv **--test** --add-SQL-filter "DollHouse:select link, title, pubdate, category, season, episode
+```
+$ swarmtv **--test** --add-SQL-filter "DollHouse:select link, title, pubdate, category, season, episode
 from newtorrents where title REGEXP('^[Dd]ollhouse') AND size < '400000000' AND new = 'Y'"
---nodup-sql-filter "SELECT title FROM downloaded WHERE link=?1 OR (season=?2 AND episode=?3 AND title REGEXP('^[Dd]ollhouse'))"</pre>
+--nodup-sql-filter "SELECT title FROM downloaded WHERE link=?1 OR (season=?2 AND episode=?3 AND title REGEXP('^[Dd]ollhouse'))"
+```

 #### Enter filter:
-
-<pre>swarmtv --add-SQL-filter "DollHouse:select link, title, pubdate, category, season, episode
-from newtorrents where title REGEXP('^[Dd]ollhouse') AND size < '400000000' AND new = 'Y'"
---nodup-sql-filter "SELECT title FROM downloaded WHERE link=?1 OR (season=?2 AND episode=?3 AND title REGEXP('^[Dd]ollhouse'))"</pre>
-
+```
+$ swarmtv --add-SQL-filter "DollHouse:select link, title, pubdate, category, season, episode
+from newtorrents where title REGEXP('^[Dd]ollhouse') AND size < '400000000' AND new = 'Y'" --nodup-sql-filter "SELECT title FROM downloaded WHERE link=?1 OR (season=?2 AND episode=?3 AND title REGEXP('^[Dd]ollhouse'))"
+```
 The --add-sql-filter option expects "<name>:<filter query="">" the name will be the name of the filter.
 The filter query selects the rows that match a query.
 the rows that are selected in the query are mandatory, the where clause is free to write your self.
@@ -171,9 +166,10 @@ For more information or suggestions to this program, Please contact me at paul [

 For bug reports and feature requests please contact me at swarmtv [at] swarmtv.nl

-## SVN
+## GIT
+[https://github.com/annejan/swarmtv](https://github.com/annejan/swarmtv)

-[http://svn.etv.cx/wsvn/swarmtv/trunk/swarmtv/#path_trunk_swarmtv_](http://svn.etv.cx/wsvn/swarmtv/trunk/swarmtv/#path_trunk_swarmtv_)
+[https://git.etv.cx/?a=summary&p=swarmtv](https://git.etv.cx/?a=summary&p=swarmtv)

 ## Disclaimer