Some channels indicate replays of series in the extended descriptions.
authorbetonme <glaserfrank(at)gmail.com>
Wed, 3 Aug 2011 17:00:28 +0000 (19:00 +0200)
committerMoritz Venn <moritz.venn@freaque.net>
Tue, 9 Aug 2011 16:23:02 +0000 (18:23 +0200)
commit12d2a7b4f9d69792666b17d1a94609e0c1276539
tree3a33c6afd230d83527b6e08b91a5653a35be52e7
parent08b9424b68e892fa65d657007ed7988d35657103
Some channels indicate replays of series in the extended descriptions.
Then the descriptions are not equal and the similar search won't find the replays.
Solution:
The SequenceMatcher will analyze the similarity of the sequences.
The ratio will return a percent value.
If the similarity percent is higher then 0.8 it is a very very close match.
For more information, see python library reference:
http://docs.python.org/release/2.5.2/lib/sequencematcher-examples.html
autotimer/src/AutoTimer.py
autotimer/src/difflib.py [new file with mode: 0644]