Commit 18f6b189 authored by John Long's avatar John Long

RefreshShow: Fix premium check for feeds requiring authentication

Ticket: N/A
parent 3a87e87b
Pipeline #63173784 passed with stages
in 1 minute and 52 seconds
......@@ -33,7 +33,7 @@ class RefreshShow
$response = $this->fetch($query);
if (Feed::isPremium($response->feed)) {
if (Feed::isPremium($response->feed, $feed)) {
$episodes = $response->episodes->episode;
$seasons = $this->extractSeasons($response->feed->season);
$this->processItems($feed, $episodes, $seasons);
......@@ -70,7 +70,7 @@ class RefreshShow
$feed->title = (string)$response->name;
$feed->description = (string)$response->description;
$feed->image_url = (string)$response['imageURL'];
$feed->is_premium = Feed::isPremium($response);
$feed->is_premium = Feed::isPremium($response, $feed);
$feed->last_refresh = Carbon::now();
$feed->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment