mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
a317ff61c2
Fixed issues with torrent providers returning no results.
13 lines
308 B
Python
13 lines
308 B
Python
import sickbeard
|
|
from bs4 import BeautifulSoup
|
|
|
|
class BS4Parser:
|
|
def __init__(self, *args, **kwargs):
|
|
self.soup = BeautifulSoup(*args, **kwargs)
|
|
|
|
def __enter__(self):
|
|
return self.soup
|
|
|
|
def __exit__(self, exc_ty, exc_val, tb):
|
|
self.soup.clear(True)
|
|
self.soup = None |