Skip to content

Commit

Permalink
[FR - CNEWS] Allow redirection in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopa00 committed May 18, 2024
1 parent dc21842 commit 098a24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/channels/fr/cnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_video_id(plugin, video_id, download_mode=False, **kwargs):

@Route.register
def list_emissions(plugin, item_id, category_url, page, **kwargs):
resp = urlquick.get(URL_REPLAY_CNEWS, headers=GENERIC_HEADERS, max_age=-1)
resp = urlquick.get(URL_REPLAY_CNEWS, headers=GENERIC_HEADERS, allow_redirects=True, max_age=-1)
data = resp.parse("div", attrs={"class": "les-emissions"})

for video_datas in data.iterfind(".//a[@class='emission-item-wrapper']"):
Expand Down

0 comments on commit 098a24b

Please sign in to comment.