Skip to content

Commit f06c383

Browse files
Merge branch 'master' into mdui
2 parents cd6a79f + 40299b3 commit f06c383

File tree

5 files changed

+52
-8
lines changed

5 files changed

+52
-8
lines changed

src/i18n/resources/ta.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@
150150
"visual-tweaks": {
151151
"label": "காட்சி மாற்றங்கள்",
152152
"submenu": {
153+
"custom-window-title": {
154+
"label": "தனிப்பயன் சாளர தலைப்பு",
155+
"prompt": {
156+
"label": "தனிப்பயன் சாளர தலைப்பை உள்ளிடவும்: (முடக்க காலியாக விடவும்)",
157+
"placeholder": "எடுத்துக்காட்டு: YouTube இசை"
158+
}
159+
},
153160
"like-buttons": {
154161
"default": "இயல்புநிலை",
155162
"force-show": "படை நிகழ்ச்சி",
@@ -381,6 +388,11 @@
381388
},
382389
"templates": {
383390
"title": "திறந்த தலைப்புகள் தேர்வாளர்"
391+
},
392+
"toast": {
393+
"caption-changed": "தலைப்பு {{language}} என மாற்றப்பட்டது",
394+
"caption-disabled": "தலைப்புகள் முடக்கப்பட்டன",
395+
"no-captions": "இந்த பாடலுக்கு தலைப்புகள் எதுவும் கிடைக்கவில்லை"
384396
}
385397
},
386398
"compact-sidebar": {
@@ -600,7 +612,15 @@
600612
},
601613
"navigation": {
602614
"description": "உங்களுக்கு பிடித்த உலாவியைப் போலவே இடைமுகத்தில் நேரடியாக ஒருங்கிணைக்கப்பட்ட அடுத்த/பின் வழிசெலுத்தல் அம்புகள்",
603-
"name": "வானோடல்"
615+
"name": "வானோடல்",
616+
"templates": {
617+
"back": {
618+
"title": "முந்தைய பக்கத்திற்குச் செல்"
619+
},
620+
"forward": {
621+
"title": "அடுத்த பக்கத்திற்குச் செல்"
622+
}
623+
}
604624
},
605625
"no-google-login": {
606626
"description": "இடைமுகத்திலிருந்து Google உள்நுழைவு பொத்தான்கள் மற்றும் இணைப்புகளை அகற்று",
@@ -692,7 +712,12 @@
692712
}
693713
},
694714
"description": "வீடியோ மேலடுக்கில் ஒரு பொத்தானைக் கொண்டு வீடியோ தரத்தை மாற்ற அனுமதிக்கிறது",
695-
"name": "வீடியோ தர மாற்றி"
715+
"name": "வீடியோ தர மாற்றி",
716+
"renderer": {
717+
"quality-settings-button": {
718+
"label": "திறந்த பிளேயர் தர மாற்றி"
719+
}
720+
}
696721
},
697722
"scrobbler": {
698723
"description": "ச்க்ரோப்ளிங் ஆதரவைச் சேர் (last.fm, Listenbrainz முதலியன)",

src/plugins/music-together/queue/song.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ export const getMusicQueueRenderer = async (
1919
const store = queue?.queue.store.store;
2020
if (!store) return null;
2121

22-
return (await app.networkManager.fetch('/music/get_queue', {
22+
return await app.networkManager.fetch<
23+
QueueRendererResponse,
24+
{
25+
queueContextParams: string;
26+
videoIds: string[];
27+
}
28+
>('/music/get_queue', {
2329
queueContextParams: store.getState().queue.queueContextParams,
2430
videoIds,
25-
})) as QueueRendererResponse | null;
31+
});
2632
};

src/plugins/synced-lyrics/providers/YTMusic.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,14 @@ export class YTMusic implements LyricProvider {
111111

112112
if (!app) return null;
113113

114-
return app.networkManager.fetch('/next?prettyPrint=false', {
114+
return app.networkManager.fetch<
115+
NextData,
116+
{
117+
videoId: string;
118+
}
119+
>('/next?prettyPrint=false', {
115120
videoId,
116-
}) as Promise<NextData>;
121+
});
117122
}
118123

119124
private fetchBrowse(browseId: string) {

src/renderer.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,15 @@ async function onApiLoaded() {
291291

292292
if (!app || !searchBox) return;
293293

294-
const result = await app.networkManager.fetch('/search', {
294+
const result = await app.networkManager.fetch<
295+
unknown,
296+
{
297+
query: string;
298+
params?: string;
299+
continuation?: string;
300+
suggestStats?: unknown;
301+
}
302+
>('/search', {
295303
query,
296304
params,
297305
continuation,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export interface YouTubeMusicAppElement extends HTMLElement {
22
navigate(page: string): void;
33
networkManager: {
4-
fetch: (url: string, data: unknown) => Promise<unknown>;
4+
fetch: <ReturnType, Data>(url: string, data: Data) => Promise<ReturnType>;
55
};
66
}

0 commit comments

Comments
 (0)