From 3cf7c3ef441822c889356fd1812ebf2944a59851 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 25 Aug 2020 10:45:55 +0100 Subject: gentoo resync : 25.08.2020 --- net-misc/pytvshows/Manifest | 7 - .../pytvshows/files/pytvshows-0.2-ezrss.it.patch | 30 --- .../pytvshows/files/pytvshows-0.2-feedurl.patch | 279 --------------------- .../files/pytvshows-0.2-improved-re.patch | 15 -- .../pytvshows/files/pytvshows-0.2-rename-var.patch | 11 - net-misc/pytvshows/metadata.xml | 8 - net-misc/pytvshows/pytvshows-0.2-r4.ebuild | 35 --- 7 files changed, 385 deletions(-) delete mode 100644 net-misc/pytvshows/Manifest delete mode 100644 net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch delete mode 100644 net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch delete mode 100644 net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch delete mode 100644 net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch delete mode 100644 net-misc/pytvshows/metadata.xml delete mode 100644 net-misc/pytvshows/pytvshows-0.2-r4.ebuild (limited to 'net-misc/pytvshows') diff --git a/net-misc/pytvshows/Manifest b/net-misc/pytvshows/Manifest deleted file mode 100644 index a4a9f165409f..000000000000 --- a/net-misc/pytvshows/Manifest +++ /dev/null @@ -1,7 +0,0 @@ -AUX pytvshows-0.2-ezrss.it.patch 1339 BLAKE2B 5a267430001de4a5f9f2784dea318d4d131783156d43b8363def26e4971cf47c3eeb15ab23546857d5f0bef78e13c6a46d93852d56b581c6ee83514a85d11a05 SHA512 45ee987549fe8648ec4ff5ac7a54cf5f5cea15ff7c467d1bd04a36f2587a4f76afd3bf61331ffb01b150d4d425f71bbb397a03ff8b00a04825901458169a87bc -AUX pytvshows-0.2-feedurl.patch 13082 BLAKE2B dccfd2c5d6637411faf91020a93dc9d84f52915d27fe4149d90b0bb54c34ca14dd3758582d4ccb67effbc9b757e3907558b099137f67857d321e216916828403 SHA512 0ba4e1ec330be7bfaccbc6087ba093c5c54ef63ab9d62592bfd41acdfd48e30ac0a23cbd04b43972a6d7da6bb07f0813e05f16f625c0e375f17b94ff23f4e978 -AUX pytvshows-0.2-improved-re.patch 680 BLAKE2B c2d7f08c256d78ae0d793df5e889bc5b99b7018053dfb701b52e0b2fdd364c6e23748db9defeb63be39ddb5cb0414e02175f9c1f0eff42e30866aad93f3fcaff SHA512 15cf4beb2b7da4efed4cf4ae744c0dcefffb4ef61b6a920c41e7926a2666bc07b9cb4ec9b058cfe84566415e7659e00adad423ae90aab0e91ba43646ecc0f6a9 -AUX pytvshows-0.2-rename-var.patch 484 BLAKE2B 9d03cff276bc1960a4813f0605be411c1044ed4647a372683bf46fca45f1df24866784be25ef1f2426fd0355c44aecf89062d2ff5e47ceeb16a4febb509106b0 SHA512 15de0a4fdef7f70df5b5e7612bc3c40741bd2efe4ef0e714b067635b400a4b5676e1f1bbbaa53818380c915714cdfc141cea3aafed75871edfb4f0bec89a9c0f -DIST pytvshows-0.2.tar.gz 14156 BLAKE2B 61449e01096ef81b131c03b0cadd89433a7dcafd3a8828f251ca9ecceb49dd4d92e382ce50b06f4b5498523fd8b4625fb5442e7f5ef71949a4605ab10910be45 SHA512 c4acd9b968dba7af1c787f9a3f5db4986ffbc52bfc43a4b7101070f8e91e80e78be0e59c4a4fbd873e64a6c4862e64abed2396c7140e9165d72e7d3cea267d5f -EBUILD pytvshows-0.2-r4.ebuild 735 BLAKE2B e3e58b21109797c6421bb8196fcf8b9a6d6a5e187da210286746ff5f1f90867e386af053448b7ca61dce6dede2f4991855438e01290a72a847ba0aec0d3045ca SHA512 274226cb80932ac76e7ca518dea07ceeb67ecc6df57f603ca80911f16f75d51cfbe2c991cd2123299e3efed01f35797415b215be0d9bcca940b6c2c4381a340e -MISC metadata.xml 246 BLAKE2B 9716f6dddff0f0604acad323b9c91c077bcf46a52f165f566193eb6cd5cb338180ff87f67f0d4df33eda5dc0136e5dd263f4f327d274803be59ff9d9acb17ccd SHA512 6f6e043d6a63993611316553ea1c70736c02151d19f1ee63ad855226dd79862c7ae7bdeccc572f23ed4dc9dfe3b0e77dd80d48bcbc33c02091c40111ac5e1aa1 diff --git a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch b/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch deleted file mode 100644 index ba0a1b91e8e1..000000000000 --- a/net-misc/pytvshows/files/pytvshows-0.2-ezrss.it.patch +++ /dev/null @@ -1,30 +0,0 @@ -This patch simply alters the feed site since txrss.net was closed/shut down. -Luckily, ezrss.it expects the same arguments and should generally work. You can -find similar details at: -https://sourceforge.net/projects/pytvshows/forums/forum/726961/topic/3309243?message=7544190 - -Yes, this could have been accomplished via the --feed paramater, but this is -more user friendly. - ---- a/pytvshows.orig 2009-09-15 22:36:34.575002779 -0500 -+++ b/pytvshows 2009-09-15 22:43:18.283754081 -0500 -@@ -59,7 +59,7 @@ - -cFILE, --config FILE - Path to config file. Default: ~/.pytvshows.cfg - -fFEED, --feed=FEED -- Override the tvrss.net feed. %%s is replaced with the -+ Override the ezrss.it feed. %%s is replaced with the - exact show name. - -h, --help This help message - -oDIR, --output_dir=DIR -@@ -77,8 +77,8 @@ - commands = ['update', 'subscribe', 'unsubscribe', 'run'] - config = { - 'config_file': os.path.expanduser("~/.pytvshows.cfg"), -- 'feed': "http://tvrss.net/search/index.php?show_name=%s&show_name_exact" \ -- "=true&mode=rss", -+ 'feed': "http://www.ezrss.it/search/index.php?show_name=%s" \ -+ "&show_name_exact=true&mode=rss", - 'output_dir': os.path.expanduser("~/"), - 'output_dir2': None, - 'quality_matches': { diff --git a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch b/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch deleted file mode 100644 index fb78581b04f9..000000000000 --- a/net-misc/pytvshows/files/pytvshows-0.2-feedurl.patch +++ /dev/null @@ -1,279 +0,0 @@ -David Reitz writes: - -I created this so that I could specify a feedurl parameter in the config file, -which allows me to use the public RSS feeds at showRSS (http://showrss.karmorra.info/). -This patch will ONLY work for seasonepisode. I made no modifications for other types. - -Simply apply this patch and then modify your config like so: - -[Weeds] -feedurl = http://showrss.karmorra.info/feeds/68.rss -episode = 4 -season = 5 -show_type = seasonepisode -human_name = Weeds - -https://sourceforge.net/tracker/index.php?func=detail&aid=2818315&group_id=203642&atid=986413 - ---- a/pytvshows.orig 2009-06-20 15:46:23.000000000 -0400 -+++ b/pytvshows 2009-07-07 20:41:39.000000000 -0400 -@@ -83,11 +83,14 @@ config = { - 'output_dir2': None, - 'quality_matches': { - "[HD": 1, -+ "HDTV": 1, - "[DSRIP": 1, - "[TVRIP": 1, - "[PDTV": 1, - "[DVD": 1, - "[HR": 2, -+ "720p": 3, -+ "720P": 3, - "[720p": 3, - "[720P": 3, - }, -@@ -189,6 +192,7 @@ class Show(object): - self.show_type = args['show_type'] - self.season = args['season'] - self.episode = args['episode'] -+ self.feedurl = args['feedurl'] - #YYYY-MM-DD HH:MM:SS - if args['date']: - self.date = datetime.datetime(*(time.strptime( -@@ -290,7 +294,10 @@ class Show(object): - - def _get_rss_feed(self): - """Gets the feedparser object.""" -- url = config['feed'] % self.exact_name -+ if self.feedurl: -+ url = self.feedurl -+ else: -+ url = config['feed'] % self.exact_name - if config['verbose']: - print "Downloading and processing %s..." % url - r = feedparser.parse(url) -@@ -335,50 +342,21 @@ class Show(object): - if not self.rss: - return False - episodes = {} -- for episode in self.rss['entries']: -- if self.show_type == 'seasonepisode': -- r = re.compile('Season\s*: ([0-9]*?);') -- season_match = r.search(episode.description) -- r = re.compile('Episode\s*:\ ([0-9]*?)$') -- episode_match = r.search(episode.description) -- if not season_match or not episode_match: -- # This might be a special with a title -- r = re.compile('Show\s*Title\s*:\s*(.*?);') -- title_match = r.search(episode.description) -- if title_match and title_match.group(1) != 'n/a' \ -- and title_match.group(1) != '': -- title = title_match.group(1) -- if config["verbose"]: -- print "Found episode with title %s and no " \ -- "season or episode in seasonepisode show." % title -- quality = 0 -- for key, value in config["quality_matches"].items(): -- if key in episode.title: -- quality = value -- break -- date = datetime.datetime(* episode.updated_parsed[:6]) -- obj = EpisodeWithTitle( -- self, -- episode.link, -- date, -- title, -- quality) -- last_key = 0 -- for key in episodes.keys(): -- if key[0] == 0 and key[1] > last_key: -- last_key = key[1] -- episodes[0, last_key] = [obj] -- elif not self.ignoremissingdetails: -- print >> warn, 'W: Could not match season and/or ' \ -- 'episode in %s' % episode.description -- else: -+ # we've defined a feedurl in the config file... -+ if self.feedurl: -+ for episode in self.rss['entries']: -+ if self.show_type == 'seasonepisode': -+ r = re.compile('S([0-9]+)E([0-9]+)') -+ match = r.search( episode.title ) -+ season_num = int(match.group(1)) -+ episode_num = int(match.group(2)) -+ if config["verbose"]: -+ print "Found Show: Season %i, Episode %i" % (season_num, episode_num) - quality = 0 - for key, value in config["quality_matches"].items(): - if key in episode.title: - quality = value - break -- season_num = int(season_match.group(1)) -- episode_num = int(episode_match.group(1)) - if season_num != 0 and episode_num != 0: - obj = EpisodeWithSeasonAndEpisode( - self, -@@ -394,57 +372,117 @@ class Show(object): - elif config['verbose']: - print 'Season or episode number is 0 in %s' \ - % episode.description -- elif self.show_type == 'date': -- r = re.compile('Episode\s*Date:\s*([0-9\-]+)$') -- date_match = r.search(episode.description) -- if not date_match: -- if not self.ignoremissingdetails: -- print >>warn, 'W: Could not match date in %s' % \ -- episode.description -- else: -+ else: -+ for episode in self.rss['entries']: -+ if self.show_type == 'seasonepisode': -+ r = re.compile('Season\s*: ([0-9]*?);') -+ season_match = r.search(episode.description) -+ r = re.compile('Episode\s*:\ ([0-9]*?)$') -+ episode_match = r.search(episode.description) -+ if not season_match or not episode_match: -+ # This might be a special with a title -+ r = re.compile('Show\s*Title\s*:\s*(.*?);') -+ title_match = r.search(episode.description) -+ if title_match and title_match.group(1) != 'n/a' \ -+ and title_match.group(1) != '': -+ title = title_match.group(1) -+ if config["verbose"]: -+ print "Found episode with title %s and no " \ -+ "season or episode in seasonepisode show." % title -+ quality = 0 -+ for key, value in config["quality_matches"].items(): -+ if key in episode.title: -+ quality = value -+ break -+ date = datetime.datetime(* episode.updated_parsed[:6]) -+ obj = EpisodeWithTitle( -+ self, -+ episode.link, -+ date, -+ title, -+ quality) -+ last_key = 0 -+ for key in episodes.keys(): -+ if key[0] == 0 and key[1] > last_key: -+ last_key = key[1] -+ episodes[0, last_key] = [obj] -+ elif not self.ignoremissingdetails: -+ print >> warn, 'W: Could not match season and/or ' \ -+ 'episode in %s' % episode.description -+ else: -+ quality = 0 -+ for key, value in config["quality_matches"].items(): -+ if key in episode.title: -+ quality = value -+ break -+ season_num = int(season_match.group(1)) -+ episode_num = int(episode_match.group(1)) -+ if season_num != 0 and episode_num != 0: -+ obj = EpisodeWithSeasonAndEpisode( -+ self, -+ episode.link, -+ datetime.datetime(* episode.updated_parsed[:6]), -+ season_num, -+ episode_num, -+ quality) -+ try: -+ episodes[season_num, episode_num].append(obj) -+ except KeyError: -+ episodes[season_num, episode_num] = [obj] -+ elif config['verbose']: -+ print 'Season or episode number is 0 in %s' \ -+ % episode.description -+ elif self.show_type == 'date': -+ r = re.compile('Episode\s*Date:\s*([0-9\-]+)$') -+ date_match = r.search(episode.description) -+ if not date_match: -+ if not self.ignoremissingdetails: -+ print >>warn, 'W: Could not match date in %s' % \ -+ episode.description -+ else: -+ quality = 0 -+ for key, value in config["quality_matches"].items(): -+ if key in episode.title: -+ quality = value -+ break -+ date = datetime.datetime(*(time.strptime( -+ date_match.group(1), "%Y-%m-%d")[0:6])).date() -+ obj = EpisodeWithDate( -+ self, -+ episode.link, -+ datetime.datetime(* episode.updated_parsed[:6]), -+ date, -+ quality) -+ try: -+ episodes[date].append(obj) -+ except KeyError: -+ episodes[date] = [obj] -+ elif self.show_type == 'time': -+ r = re.compile('Show\s*Title\s*:\s*(.*?);') -+ title_match = r.search(episode.description) -+ if not title_match: -+ if not self.ignoremissingdetails: -+ print >>warn, 'W: Could not match title in %s' % \ -+ episode.description -+ title = "" -+ else: -+ title = title_match.group(1) - quality = 0 - for key, value in config["quality_matches"].items(): - if key in episode.title: - quality = value - break -- date = datetime.datetime(*(time.strptime( -- date_match.group(1), "%Y-%m-%d")[0:6])).date() -- obj = EpisodeWithDate( -+ date = datetime.datetime(* episode.updated_parsed[:6]) -+ obj = EpisodeWithTitle( - self, - episode.link, -- datetime.datetime(* episode.updated_parsed[:6]), - date, -+ title, - quality) - try: - episodes[date].append(obj) - except KeyError: - episodes[date] = [obj] -- elif self.show_type == 'time': -- r = re.compile('Show\s*Title\s*:\s*(.*?);') -- title_match = r.search(episode.description) -- if not title_match: -- if not self.ignoremissingdetails: -- print >>warn, 'W: Could not match title in %s' % \ -- episode.description -- title = "" -- else: -- title = title_match.group(1) -- quality = 0 -- for key, value in config["quality_matches"].items(): -- if key in episode.title: -- quality = value -- break -- date = datetime.datetime(* episode.updated_parsed[:6]) -- obj = EpisodeWithTitle( -- self, -- episode.link, -- date, -- title, -- quality) -- try: -- episodes[date].append(obj) -- except KeyError: -- episodes[date] = [obj] - self.episodes = episodes - return episodes - -@@ -597,6 +635,7 @@ def main(argv=None): - 'date': None, - 'time': None, - 'ignoremissingdetails': False, -+ 'feedurl': None, - } - for key in args.keys(): - if f.has_option(exact_name, key): diff --git a/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch b/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch deleted file mode 100644 index a0f114588b3e..000000000000 --- a/net-misc/pytvshows/files/pytvshows-0.2-improved-re.patch +++ /dev/null @@ -1,15 +0,0 @@ -Improved regular expression for matching season and episode; see -https://sourceforge.net/tracker/index.php?func=detail&aid=2818315&group_id=203642&atid=986413 - ---- a/pytvshows.orig 2011-08-17 23:20:16.000000000 +0200 -+++ b/pytvshows 2011-08-17 23:22:30.000000000 +0200 -@@ -346,7 +346,8 @@ - if self.feedurl: - for episode in self.rss['entries']: - if self.show_type == 'seasonepisode': -- r = re.compile('S([0-9]+)E([0-9]+)') -+ #r = re.compile('S([0-9]+)E([0-9]+)') -+ r = re.compile(r'\bS?([0-9]{1,2})\s*(?:E|x)?\s*([0-9]{1,2})\b') - match = r.search( episode.title ) - season_num = int(match.group(1)) - episode_num = int(match.group(2)) diff --git a/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch b/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch deleted file mode 100644 index 0713a029c37f..000000000000 --- a/net-misc/pytvshows/files/pytvshows-0.2-rename-var.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/pytvshows.bug 2014-06-19 18:49:42.414928250 +0100 -+++ b/pytvshows 2014-06-19 18:49:50.534957323 +0100 -@@ -255,7 +255,7 @@ - self.show_type = 'seasonepisode' - elif date_match: - self.show_type = 'date' -- elif titlematch and titlematch.group(1) != 'n/a': -+ elif title_match and title_match.group(1) != 'n/a': - self.show_type = 'time' - else: - print >> warn, "Could not determine show type for %s." % self diff --git a/net-misc/pytvshows/metadata.xml b/net-misc/pytvshows/metadata.xml deleted file mode 100644 index b3afcab16c89..000000000000 --- a/net-misc/pytvshows/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - pytvshows - - diff --git a/net-misc/pytvshows/pytvshows-0.2-r4.ebuild b/net-misc/pytvshows/pytvshows-0.2-r4.ebuild deleted file mode 100644 index dd398bde85ea..000000000000 --- a/net-misc/pytvshows/pytvshows-0.2-r4.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 - -DESCRIPTION="downloads torrents for TV shows from RSS feeds provided by ezrss.it" -HOMEPAGE="https://sourceforge.net/projects/pytvshows/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" -IUSE="" - -DEPEND="" -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/feedparser[${PYTHON_MULTI_USEDEP}] - ')" - -PATCHES=( - "${FILESDIR}/${P}-ezrss.it.patch" - "${FILESDIR}/${P}-feedurl.patch" - "${FILESDIR}/${P}-improved-re.patch" - "${FILESDIR}/${P}-rename-var.patch" -) - -pkg_setup() { - python-single-r1_pkg_setup -} -- cgit v1.2.3