@@ -0,0 +1,712 @@
+from providers.popularity.provider import PopularityProvider%0Afrom utils.torrent_util import torrent_to_movie, remove_bad_torrent_matches%0Afrom urllib import quote%0A%0AIDENTIFIER = %22thepiratebay%22%0A%0Aclass Provider(PopularityProvider):%0A    PAGES_TO_FETCH = 3%0A%0A    def get_popular(self):%0A        names = %5B%5D%0A        query = quote(%22720p %7C 1080p %7C DVDRip%22)%0A        for page in range(Provider.PAGES_TO_FETCH):%0A            url = %22https://thepiratebay.org/search/%25s/%25s/99/207%22 %25 (query, page)%0A            # assert False, url%0A            names += self.parse_html(url, %22.detLink%22, cache=False)%0A%0A        movies = %5Btorrent_to_movie(name) for name in names%5D%0A        movies = remove_bad_torrent_matches(movies)%0A        return movies%0A

Add support for The Pirate Bay as popularity provider.