mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-23 05:33:07 +05:30
FK: let crystal tool format do its magic and replace the spaces before in-line comments with a random number of tabs, to get the lint check to work
This commit is contained in:
parent
1e3bbe2781
commit
4a70164539
@ -30,9 +30,7 @@ struct Invidious::User
|
|||||||
return subscriptions
|
return subscriptions
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def parse_playlist_export_csv(user : User, raw_input : String, filename : String)
|
def parse_playlist_export_csv(user : User, raw_input : String, filename : String)
|
||||||
|
|
||||||
LOGGER.trace("parse_playlist_export_csv: 01 raw_input '#{raw_input}'\n")
|
LOGGER.trace("parse_playlist_export_csv: 01 raw_input '#{raw_input}'\n")
|
||||||
|
|
||||||
raw_head = "" # playlists.csv - info-line for a given playlist in the google export, that's copied above the actual playlist-infos and separated by an empty line from
|
raw_head = "" # playlists.csv - info-line for a given playlist in the google export, that's copied above the actual playlist-infos and separated by an empty line from
|
||||||
@ -61,12 +59,11 @@ struct Invidious::User
|
|||||||
privacy = PlaylistPrivacy::Private
|
privacy = PlaylistPrivacy::Private
|
||||||
|
|
||||||
if (raw_head != "")
|
if (raw_head != "")
|
||||||
|
# ## XXX for documentation of current file format of playlists.csv (today it's 2024-01-07):
|
||||||
### XXX for documentation of current file format of playlists.csv (today it's 2024-01-07):
|
# 0 1 2 3 4 5 6 7 8 9 10 11
|
||||||
#0 1 2 3 4 5 6 7 8 9 10 11
|
# Playlist ID,Add new videos to top,Playlist image 1 Create timestamp,Playlist image 1 URL,Playlist image 1 Height,Playlist image 1 Width,Playlist title (original),Playlist title (original) language,Playlist create timestamp,Playlist update timestamp,Playlist video order,Playlist visibility
|
||||||
#Playlist ID,Add new videos to top,Playlist image 1 Create timestamp,Playlist image 1 URL,Playlist image 1 Height,Playlist image 1 Width,Playlist title (original),Playlist title (original) language,Playlist create timestamp,Playlist update timestamp,Playlist video order,Playlist visibility
|
# PLc5oiabcabcabcabcabcrOvXgzabcabcm,False,,,,,display name of playlist,,2015-01-01T01:02:03+00:00,2022-10-28T02:23:15+00:00,Manual,Public' ---
|
||||||
#PLc5oiabcabcabcabcabcrOvXgzabcabcm,False,,,,,display name of playlist,,2015-01-01T01:02:03+00:00,2022-10-28T02:23:15+00:00,Manual,Public' ---
|
# ##/documentation
|
||||||
###/documentation
|
|
||||||
|
|
||||||
# Create the playlist from the head content (if it seems to be valid):
|
# Create the playlist from the head content (if it seems to be valid):
|
||||||
csv_head = CSV.new(raw_head.strip('\n'), headers: true)
|
csv_head = CSV.new(raw_head.strip('\n'), headers: true)
|
||||||
|
Loading…
Reference in New Issue
Block a user