Skip to content

Commit

Permalink
Go back to IOS client
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrews54757 committed Aug 31, 2024
1 parent bb0930e commit 9f52d6d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chrome/player/FastStreamClient.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class FastStreamClient extends EventEmitter {
this.options.visChangeAction = options.visChangeAction;
this.options.miniSize = options.miniSize;
this.options.miniPos = options.miniPos;
this.options.defaultYoutubeClient = options.defaultYoutubeClient2;
this.options.defaultYoutubeClient = options.defaultYoutubeClient3;

if (sessionStorage && sessionStorage.getItem('autoplayNext') !== null) {
this.options.autoplayNext = sessionStorage.getItem('autoplayNext') == 'true';
Expand Down
2 changes: 1 addition & 1 deletion chrome/player/options/defaults/DefaultOptions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DefaultOptions = {
storeProgress: true,
autoplayYoutube: EnvUtils.isExtension(),
autoplayNext: false,
defaultYoutubeClient2: YoutubeClients.WEB,
defaultYoutubeClient3: YoutubeClients.WEB,
defaultQuality: `Auto`,
autoEnableURLs: [],
customSourcePatterns: ``,
Expand Down
8 changes: 3 additions & 5 deletions chrome/player/options/options.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function loadOptions(newOptions) {
setSelectMenuValue(visChangeAction, Options.visChangeAction);
setSelectMenuValue(miniPos, Options.miniPos);
setSelectMenuValue(qualityMenu, Options.defaultQuality);
setSelectMenuValue(ytclient, Options.defaultYoutubeClient2);
setSelectMenuValue(ytclient, Options.defaultYoutubeClient3);

if (Options.visChangeAction === VisChangeActions.MINI_PLAYER) {
showWhenMiniSelected.style.display = '';
Expand Down Expand Up @@ -212,8 +212,8 @@ createSelectMenu(qualityMenu, Object.values(DefaultQualities), Options.defaultQu
optionChanged();
});

createSelectMenu(ytclient, Object.values(YoutubeClients), Options.defaultYoutubeClient2, null, (e) => {
Options.defaultYoutubeClient2 = e.target.value;
createSelectMenu(ytclient, Object.values(YoutubeClients), Options.defaultYoutubeClient3, null, (e) => {
Options.defaultYoutubeClient3 = e.target.value;
optionChanged();
});

Expand Down Expand Up @@ -631,5 +631,3 @@ if (EnvUtils.isExtension()) {
});
// SPLICER:NO_UPDATE_CHECKER:REMOVE_END
}

document.getElementById('ytc').style.display = ''; // SPLICER:CENSORYT:REMOVE_LINE
2 changes: 1 addition & 1 deletion chrome/player/players/yt/YTPlayer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default class YTPlayer extends DashPlayer {
const youtube = await Innertube.create({
cache,
fetch: (mode === ClientType.IOS) ? this.youtubeFetchIOS.bind(this) : this.youtubeFetch.bind(this),
client_type: mode,
client_type: mode === ClientType.IOS ? undefined : mode,
runner_location: 'https://sandbox.faststream.online/',
});

Expand Down

0 comments on commit 9f52d6d

Please sign in to comment.