Add 'to_json' into respective structs

This commit is contained in:
Omar Roth
2019-06-08 13:31:41 -05:00
parent 1c9085556c
commit 12b2ab5da8
7 changed files with 307 additions and 451 deletions

View File

@@ -6,7 +6,7 @@ struct MixVideo
ucid: String,
length_seconds: Int32,
index: Int32,
mixes: Array(String),
rdid: String,
})
end
@@ -70,7 +70,7 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil)
ucid,
length_seconds,
index,
[rdid]
rdid
)
end