Announcement

Collapse
No announcement yet.

Easy MOD for Amazon Individual Season/Episode Analysis

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    StreamFab for Windows Easy MOD for Amazon Individual Season/Episode Analysis

    StreamFab users who download a lot from Amazon know that individual season and episode analysis is essential. Reasons for wanting this could be:
    • You don't necessarily always want the highest bitrate possible
    • TV Show has some seasons in SD and others in HD or FHD
    • TV Show has different audio codecs for different seasons
    • Different episodes within a season have very different bitrates available. StreamFab will download the highest bitrate if it doesn't find the one you selected from another episode.
    • TV Show has a lot of seasons, making the analysis painfully long
    0xFeedBeef came up with 2 ways of modifying the Python scripts for Amazon in order to alleviate these issues. This way for individual seasons and this way for individual episodes.

    I took his findings and created 2 Windows CMD scripts for people that aren't comfortable manually editing the Python scripts. This will ensure there are no typos that will break the code. Python is extremely finicky about proper indentation. It also speeds up the process of applying the mods after a StreamFab upgrade and speeds up selecting an episode to analyze.

    Installation
    • Unzip the file onto your desktop for easy access. It doesn't need to be there if you don't like clutter on your desktop to work.
    • Run StreamFab
    • Right-Click the file named sf_manage_mod.cmd and click Run as administrator
    Click image for larger version  Name:	image.png Views:	28 Size:	23.7 KB ID:	458113
    • Confirm the elevation of privileges
    • Choose the Install MOD option

    Click image for larger version  Name:	image.png Views:	0 Size:	21.2 KB ID:	461898

    If you want to uninstall the MOD, choose the Restore out-of-box functionality option

    The script looks for the StreamFab64.exe that is running. That means you can install/remove it from any of the installed version you have.

    Do yourself a favour and before installing any new version of StreamFab, just rename the folder so that you can decide which version you want to use. You never know what has now freshly been broken in the latest version so that way, you can use a specific older version for a specific service and the latest version for the rest.

    This is what my Program Files\DVDFab folder looks like:

    Click image for larger version  Name:	image.png Views:	0 Size:	16.6 KB ID:	461899

    When running the script, if StreamFab64.exe is not running, you will get an error message:

    Click image for larger version  Name:	image.png Views:	0 Size:	30.6 KB ID:	461900

    When StreamFab64.exe is running, it will show you which folder it will install the MOD in:

    Click image for larger version  Name:	image.png Views:	0 Size:	37.0 KB ID:	461901​​


    Here is a gofile link for the zip file: https://gofile.io/d/daI8JR

    ChangeLog

    v2.11:
    • Added support for StreamFab v6.2.3.0

    v2.01:
    • Added support to install/restore from any StreamFab x64 directory.
    • Added support to select episodes from any StreamFab version with the MOD installed
    • Added support to continuously loop through the script for multiple episode selection.
    Last edited by jpp72; 04-18-2025, 03:23 PM.

    #2
    Usage

    Once you have extracted the MOD to your desktop or any other folder, you should have a folder with 6 files. 4 Python scripts and 2 CMD scripts:

    Click image for larger version  Name:	image.png Views:	0 Size:	11.8 KB ID:	458119
    • sf_manage_mod.cmd is used to install or remove the MOD
    • sf_amzn_ep_select.cmd will take the episode number you want to analyze in the current season displayed in StreamFab
    • mod.* files are the pre-modified versions of the python scripts that make the MOD work
    • orig.* files are the original, untouched versions of the python scripts that come with StreamFab Out-of-the-box

    After installing the MOD as explained in the previous post, you will only ever need to use sf_amzn_ep_select.cmd unless you wish to revert to OOB functionality.

    As with the other CMD script, we need to run sf_amzn_ep_select.cmd as an administrator because we modify files directly from the StreamFab\script folder.
    1. Right-click on sf_amzn_ep_select.cmd and Run as administrator
    2. Input the episode number that you want to analyze
    3. Click the Click to analyze button in StreamFab
    4. To analyze another episode from the same season, refresh the page and press enter in the command window.
    5. Repeat steps 2 and 3
    6. To analyze an episode from a different season or show, select that season or show and press enter in the command window.
    7. Repeat steps 2 and 3
    Click image for larger version

Name:	image.png
Views:	297
Size:	40.4 KB
ID:	461902

    Things to consider:
    • For this to work properly, you must disable the Automatic Analysis in the StreamFab settings
    • You can (obviously) run the script while StreamFab is running
    • The episode you choose to analyze will be moved to the top of the episode list. If you have severe OCD, you can re-order the episodes in the Download Queue
    • To exit the script, simply close the command window
    Here is a screenshot of what the pop-up will look like:

    Click image for larger version  Name:	image.png Views:	0 Size:	140.8 KB ID:	458121

    This is a perfect example of why we need StreamFab to implement individual episode analysis. It has 40 seasons and i don't just need the last episode so sort by descending doesn't really help me because i need the last 5 episodes.

    If you'd like to know how the sf_amzn_ep_select.cmd script works, you can paste it into Gemini AI, Claude AI or ChatGPT and they will explain what is happening.

    For the python script, here is the code i added:

    Code:
        # Move the episode with position X to the beginning of the array
        for i, episode in enumerate(episodes_array):
            if episode["seq"] == 1:
                episodes_array.insert(0, episodes_array.pop(i))
                break​
    Last edited by jpp72; 04-18-2025, 03:32 PM.

    Comment


      #3
      Easy MOD updated to version 2.11 to add support for StreamFab v6.2.3.0

      Comment

      Working...
      X