Originally posted by 0xFeedBeef
View Post
Announcement
Collapse
No announcement yet.
Brain Surgery and Other Glorious Adventures in Hacking The Episode Analyser
Collapse
X
-
Originally posted by MrGrackle View Post
Would analysing a single episode be needed if there were forced subtitles present that were not on other episodes? Ran into that a lot with Netflix. I know with most content on Amazon the subs are burned in so it's a moot point.
Comment
-
Was meant to add in in the earlier reply, from experimenting, 'Fab picks bitrate based on the bitrate tag in the manifest file, not the actual bitrate presented to the user in the dropdown box. So if you picked a bitrate that's tagged with the maximum bitrate budget in the manifest, the rest of the season is added with the same maximum bitrate budget tag, if that explanation makes sense.
Comment
-
Originally posted by 0xFeedBeef View Post
So far as I gather, if the relevant box is checked in the settings, 'Fab always fabulously downloads forces subs for your selected languages, at least that's been my experience (cf. OnceHasBeenStream, for example)
Comment
-
Originally posted by MrGrackle View Post
Never had it auto-download forced subs unless I manually select them. Yes the box is checked. Problem is, each service has a different description. En, Eng, English-US.
I have installed BitWarden and ViolentMonkey. In ViolentMonkey, i installed Amazon Subtitle downloader and Netflix Subtitle downloader
So you can download external subs from within StreamFab and all modern players can use them or you remux them into your files manually
- Likes 1
Comment
-
Originally posted by jpp72 View Post
Because StreamFab now uses a full featured Chromium browser, you can install extensions.
I have installed BitWarden and ViolentMonkey. In ViolentMonkey, i installed Amazon Subtitle downloader and Netflix Subtitle downloader
So you can download external subs from within StreamFab and all modern players can use them or you remux them into your files manually
At least with knowing up front if forced subs are offered saves a lot of time and headache later on.
Comment
-
Originally posted by jpp72 View Post
Because StreamFab now uses a full featured Chromium browser, you can install extensions.
I have installed BitWarden and ViolentMonkey. In ViolentMonkey, i installed Amazon Subtitle downloader and Netflix Subtitle downloader
So you can download external subs from within StreamFab and all modern players can use them or you remux them into your files manually
... and after editing the Amazon subs downloader script to make it stop bastardising pristine TTML into SRT and appending stupid things to title (as well as making it recognise [cc] subs properly), it works rater well. Kudos on the legwork!
edits, if you want a copy:
Code:--- original.js 2024-11-05 23:58:34.486865100 +0000 +++ edited.js 2024-11-06 00:01:47.064393295 +0000 @@ -206,18 +206,19 @@ onload: function(resp) { progressBar.increment(); - var srt = xmlToSrt(resp.responseText, lang); - if(srt === null) { - srt = resp.responseText; - title = title.replace(/\.[^\.]+$/, '.ttml2'); - } +// var srt = xmlToSrt(resp.responseText, lang); +// if(srt === null) { +// srt = resp.responseText; +// title = title.replace(/\.[^\.]+$/, '.ttml2'); +// } + if(downloadVars) { - downloadVars.zip.file(title, srt); + downloadVars.zip.file(title, resp.responseText); --downloadVars.subCounter; if((downloadVars.subCounter|downloadVars.infoCounter) === 0) downloadVars.zip.generateAsync({type:"blob"}) .then(function(content) { - saveAs(content, sanitizeTitle(downloadVars.title) + '.zip'); + saveAs(content, sanitizeTitle(downloadVars.title) + '.subs.zip'); progressBar.destroy(); }); } @@ -269,7 +270,7 @@ title += '.' + epInfo.title; } title = sanitizeTitle(title); - title += '.WEBRip.Amazon.'; +// title += '.WEBRip.Amazon.'; var languages = new Set(); var forced = info.forcedNarratives || []; @@ -282,7 +283,7 @@ subs.forEach(function(subInfo) { let lang = subInfo.languageCode; if(subInfo.type === 'subtitle' || subInfo.type === 'subtitle') {} - else if(subInfo.type === 'shd') + else if(subInfo.type === 'sdh') lang += '[cc]'; else lang += `[${subInfo.type}]`; @@ -297,7 +298,7 @@ languages.add(lang); ++downloadVars.subCounter; progressBar.incrementMax(); - downloadSubs(subInfo.url, title + lang + '.srt', downloadVars, lang); + downloadSubs(subInfo.url, title + '.' + lang + '.ttml', downloadVars, lang); }); } catch(e) {
Last edited by 0xFeedBeef; 11-06-2024, 12:03 AM.
Comment
Comment