diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/__pycache__/filmpertutti.cpython-311.pyc b/__pycache__/filmpertutti.cpython-311.pyc index 47bd783..428209e 100644 Binary files a/__pycache__/filmpertutti.cpython-311.pyc and b/__pycache__/filmpertutti.cpython-311.pyc differ diff --git a/filmpertutti.py b/filmpertutti.py index 512e809..0f29ab1 100644 --- a/filmpertutti.py +++ b/filmpertutti.py @@ -92,7 +92,6 @@ def search(query,date): href = link['href'] #replace base url for easier scraping href = href.replace('definizionealta.com', f'filmpertutti.{DOMAIN}') - href = href.replace('definizionealta.com', 'filmpertutti.casino') #Get the correct serie by checking if the date is equals series_response = requests.get(href, headers=headers) series_soup = BeautifulSoup(series_response.text, 'html.parser') diff --git a/requirements.txt b/requirements.txt index 36b91ca..3875c69 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ bs4 tmdbv3api dateparser -dotenv +python-dotenv flask diff --git a/run.py b/run.py index 4a3f214..59df1e4 100644 --- a/run.py +++ b/run.py @@ -28,7 +28,7 @@ def addon_manifest(): def addon_stream(type, id): if type not in MANIFEST['types']: abort(404) - + url = get_stream_link(id) # call the function to dynamically get stream links