|
@@ -339,7 +339,7 @@ detail = async (url, platform) => {
|
|
"width": format["width"] + "",
|
|
"width": format["width"] + "",
|
|
"height": format["height"] + "",
|
|
"height": format["height"] + "",
|
|
"type": format["mimeType"],
|
|
"type": format["mimeType"],
|
|
- "quality": format["quality"],
|
|
|
|
|
|
+ "quality": format["qualityLabel"],
|
|
"itag": format["itag"],
|
|
"itag": format["itag"],
|
|
"fps": format["fps"] + "",
|
|
"fps": format["fps"] + "",
|
|
"bitrate": format["bitrate"] + "",
|
|
"bitrate": format["bitrate"] + "",
|
|
@@ -390,6 +390,8 @@ detail = async (url, platform) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ formats.sort((a, b) => parseInt(a["height"]) - parseInt(b["height"]));
|
|
|
|
+
|
|
const videoDetails = {
|
|
const videoDetails = {
|
|
"isLiveContent": originVideoDetails["isLiveContent"],
|
|
"isLiveContent": originVideoDetails["isLiveContent"],
|
|
"title": originVideoDetails["title"],
|
|
"title": originVideoDetails["title"],
|
|
@@ -410,7 +412,7 @@ detail = async (url, platform) => {
|
|
"data": {
|
|
"data": {
|
|
"videoDetails": videoDetails,
|
|
"videoDetails": videoDetails,
|
|
"streamingData": {
|
|
"streamingData": {
|
|
- "formats": formats.reverse()
|
|
|
|
|
|
+ "formats": formats
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"id": "MusicDetailViewModel_detail_url"
|
|
"id": "MusicDetailViewModel_detail_url"
|