Skip to content

Commit fe55141

Browse files
committed
Crystal format
1 parent 9205ccc commit fe55141

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/invidious/mixes.cr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ struct MixVideo
88
property length_seconds : Int32
99
property index : Int32
1010
property rdid : String
11-
1211
end
1312

1413
struct Mix

src/invidious/playlists.cr

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ struct InvidiousPlaylist
234234
0_i64
235235
end
236236

237-
238237
def description_html
239238
HTML.escape(self.description)
240239
end
@@ -252,7 +251,7 @@ def create_playlist(title, privacy, user)
252251
created: Time.utc,
253252
updated: Time.utc,
254253
privacy: privacy,
255-
index: [] of Int64
254+
index: [] of Int64,
256255
})
257256

258257
Invidious::Database::Playlists.insert(playlist)
@@ -270,7 +269,7 @@ def subscribe_playlist(user, playlist)
270269
created: Time.utc,
271270
updated: playlist.updated,
272271
privacy: PlaylistPrivacy::Private,
273-
index: [] of Int64
272+
index: [] of Int64,
274273
})
275274

276275
Invidious::Database::Playlists.insert(playlist)

src/invidious/routes/feeds.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ module Invidious::Routes::Feeds
156156

157157
response = YT_POOL.client &.get("/feeds/videos.xml?channel_id=#{channel.ucid}")
158158
rss = XML.parse_html(response.body)
159-
print(response)
159+
160160
videos = rss.xpath_nodes("//feed/entry").map do |entry|
161161
video_id = entry.xpath_node("videoid").not_nil!.content
162162
title = entry.xpath_node("title").not_nil!.content
@@ -182,7 +182,7 @@ module Invidious::Routes::Feeds
182182
paid: false,
183183
premium: false,
184184
premiere_timestamp: nil,
185-
author_verified: false, # ¯\_(ツ)_/¯
185+
author_verified: false, # ¯\_(ツ)_/¯
186186
})
187187
end
188188

0 commit comments

Comments
 (0)