X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2Futils.py;h=afb056f7994fa7c5a9483bd1a06ca70fad3029c8;hp=25cd28551f2f5dd77b3b5cf2af1f9c54d261a136;hb=0dad9aee7bac49ad5c34d9a49511da25d00a6d4c;hpb=559ce4832693d6a8e805ce50c1d6a3283cda6c88 diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 25cd285..afb056f 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -3,23 +3,6 @@ # Module: utils # Created on: 13.01.2017 -# strips html from input -# used the kick out the junk, when parsing the inline JS objects of the Netflix homepage -from HTMLParser import HTMLParser -class MLStripper(HTMLParser): - def __init__(self): - self.reset() - self.fed = [] - def handle_data(self, d): - self.fed.append(d) - def get_data(self): - return ''.join(self.fed) - -def strip_tags(html): - s = MLStripper() - s.feed(html) - return s.get_data() - # Takes everything, does nothing, classic no operation function def noop (**kwargs): return True