Update streamingcommunity.py
This commit is contained in:
committed by
GitHub
Unverified
parent
373f02576e
commit
1b5b815d21
@@ -54,14 +54,7 @@ def search(query,date,ismovie):
|
||||
#Added a Check to see if the result is what it is supposed to be
|
||||
if SC_FAST_SEARCH == "0":
|
||||
if ismovie == 0:
|
||||
seasons_count = item['seasons_count']
|
||||
#Do not ask me why but somewhy streaming community call the first air date the last air date
|
||||
first_air_date = item['last_air_date']
|
||||
if first_air_date:
|
||||
first_air_year = first_air_date.split("-")[0]
|
||||
if first_air_year == date:
|
||||
return tid,slug
|
||||
else:
|
||||
#
|
||||
response = requests.get ( f'https://streamingcommunity.boston/titles/{tid}-{slug}')
|
||||
pattern = r'<div[^>]*class="features"[^>]*>.*?<span[^>]*>(.*?)<\/span>'
|
||||
match = re.search(pattern, response.text)
|
||||
|
||||
Reference in New Issue
Block a user