summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/invidious/user/imports.cr8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/invidious/user/imports.cr b/src/invidious/user/imports.cr
index 86d0ce6e..0d21bc44 100644
--- a/src/invidious/user/imports.cr
+++ b/src/invidious/user/imports.cr
@@ -228,8 +228,12 @@ struct Invidious::User
subs = matches.map(&.["channel_id"])
if subs.empty?
- data = JSON.parse(body)["subscriptions"]
- subs = data.as_a.map(&.["id"].as_s)
+ profiles = body.split('\n', remove_empty: true)
+ profiles.each do |profile|
+ if data = JSON.parse(profile)["subscriptions"]?
+ subs += data.as_a.map(&.["id"].as_s)
+ end
+ end
end
user.subscriptions += subs
992037+syeopite@users.noreply.github.com> 2025-03-12Add changelog for v2.20250314.0 (#5197)v2.20250314.0syeopite * Release v2.20250314.0 * Update CHANGELOG.md 2025-03-12Warn when `po_token`, `visitor_data` and/or `inv-sig-helper` is not ↵syeopite configured (#5202) * Warn when required configs for playback is missing * Add link to documentation in warnings * Direct users to /installation instead 2025-02-26Fix lint and formattingsyeopite 2025-02-26i18n: Enable Tamilsyeopite 2025-02-21Fix an issue with the HLS manifest check for livestream videosAlex Maras Originally, the HLS manifest check was essentially a boolean: if the HLS manifest field was present, it was assumed to be a livestream. Some videos include the HLS Manifest but aren't livestreams. In the case where they are livestreams, the video contains a videoType field with the value "Livestream". In the case that they're normal videos, the videoType is "Video". This is exposed via the video.live_now method. This commit just checks that video.live_now is true before treating it as a livestream 2025-02-18Typosyeopite Co-authored-by: Samantaz Fox <coding@samantaz.fr> 2025-02-18Channels: Fix community tabFijxu 2025-01-28Use Crystal compiler cache in docker buildssyeopite 2025-01-28fix 5161 by checking recommended videos published field for presence instead ↵Drikanis of just not nil 2025-01-26remove ! on rejectepicsam123 2025-01-25Add Courses to channel page and channel APIChunkyProgrammer