mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-18 05:58:52 +00:00
added an option for tiktok h265 videos, majorly cleaned up frontend
- cleaned up cobalt.js (by a lot) - removed notification dot - removed settings migration - removed vimeoDash - turned youtube track language switcher into a toggle - added clarification as to what youtube dub does - updated defaults to match with backend - now matching a url from any string at any place
This commit is contained in:
@@ -47,8 +47,8 @@ export default async function(obj) {
|
||||
images = detail.image_post_info?.images;
|
||||
|
||||
let playAddr = detail.video.play_addr_h264;
|
||||
|
||||
if (!playAddr) playAddr = detail.video.play_addr;
|
||||
if ((obj.h265 || !playAddr) && detail.video.play_addr)
|
||||
playAddr = detail.video.play_addr;
|
||||
|
||||
if (!obj.isAudioOnly && !images) {
|
||||
video = playAddr.url_list[0];
|
||||
|
||||
@@ -39,7 +39,7 @@ export default async function(obj) {
|
||||
if (!api) return { error: 'ErrorCouldntFetch' };
|
||||
|
||||
let downloadType = "dash";
|
||||
if (!obj.forceDash && JSON.stringify(api).includes('"progressive":[{')) downloadType = "progressive";
|
||||
if (!obj.isAudioOnly && JSON.stringify(api).includes('"progressive":[{')) downloadType = "progressive";
|
||||
|
||||
let fileMetadata = {
|
||||
title: cleanString(api.video.title.trim()),
|
||||
|
||||
Reference in New Issue
Block a user