In the spirit of Germania jpp72 "unleashing" their hacks for various tricks, I thought I'd share a hack that allows you can make StreamFab analyse only the currently selected season instead the first season and scanning all available seasons, effectively mimicking the behaviour of OnceHasBeenStream.
The trick lies in modifying
that is found in the scripts folder in two places, specifically lines 33 and 44.
So, first, having BACKED UP THE FILE, change line 33 from:
to anything that isn't selecting that specific class, I simply add a "-fudged" ending to it, so it looks like:
Similarly, with line 44, from
to, again, anything that isn't selecting that specific class, like suffixing it with a "-fudged" endling like so:
Save the file (as .py not a .txt file, obviously), select the season of TV show and hit the "Analyse" button. Voila!
The reason why this hack works is because the TV shows that have one season only don't have any anchors under the dv-node-dp-season(-defualt)? class, while those that have multiple seasons have anchors for every other season under that class (well, technically in a list under that class, but that's irrelevant). So what the hack does is it makes StreamFab to select anchors under a class that doesn't exist and when that list of anchors is empty, StreamFab treats the TV show as though it only has one season available.
Obviously, if you have some python knowledge you can rewrite the function to always return an empty array in the necessary place, but I am shooting for the lowest skilled py hacker here, and quite often I flip between two versions, so each to their own. Wilson.Wang maybe there could be a StreamFab option and two separate scripts and depending on what option is selected the correct script gets invoked in some future version of 'Fab?
Unfudged behaviour:-
Fudged behaviour:-
The trick lies in modifying
Code:
amazon_get_season_urls.py
So, first, having BACKED UP THE FILE, change line 33 from:
Code:
elems = amazonSoup.select('.dv-node-dp-seasons a')
Code:
elems = amazonSoup.select('.dv-node-dp-seasons-fudged a')
Similarly, with line 44, from
Code:
elems = amazonSoup.select('.dv-node-dp-seasons-default a')
Code:
elems = amazonSoup.select('.dv-node-dp-seasons-default-fudged a')
Save the file (as .py not a .txt file, obviously), select the season of TV show and hit the "Analyse" button. Voila!
The reason why this hack works is because the TV shows that have one season only don't have any anchors under the dv-node-dp-season(-defualt)? class, while those that have multiple seasons have anchors for every other season under that class (well, technically in a list under that class, but that's irrelevant). So what the hack does is it makes StreamFab to select anchors under a class that doesn't exist and when that list of anchors is empty, StreamFab treats the TV show as though it only has one season available.
Obviously, if you have some python knowledge you can rewrite the function to always return an empty array in the necessary place, but I am shooting for the lowest skilled py hacker here, and quite often I flip between two versions, so each to their own. Wilson.Wang maybe there could be a StreamFab option and two separate scripts and depending on what option is selected the correct script gets invoked in some future version of 'Fab?
Unfudged behaviour:-
Fudged behaviour:-
Comment