Skip to content

Commit

Permalink
Merge branch 'master' into radarr_renamer
Browse files Browse the repository at this point in the history
  • Loading branch information
revenz authored Jun 9, 2024
2 parents b354a87 + 23d60b0 commit de92df7
Show file tree
Hide file tree
Showing 53 changed files with 210 additions and 200 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { Radarr } from '../../../Shared/Radarr';
import { Language } from '../../../Shared/Language';

/**
* Lookups a file in Radarr and gets its original language ISO-693-1 code for it
* @author John Andrews
* @revision 4
* @minimumVersion 1.0.0.0
* @param {string} Path The full file path to lookup in Radarr
* @param {bool} ISO2 If ISO-639-2 should be returned, otherwise ISO-639-1 will be used
* @output The language was found and stored in the variable OriginalLanguage
* @output The language was not found
*/
* @author John Andrews
* @uid 3915f110-4b07-4e11-b7b9-50de3f5a1255
* @description Lookups a file in Radarr and gets its original language ISO-693-1 code for it
* @revision 5
* @param {string} Path The full file path to lookup in Radarr
* @param {bool} ISO2 If ISO-639-2 should be returned, otherwise ISO-639-1 will be used
* @output The language was found and stored in the variable OriginalLanguage
* @output The language was not found
*/
function Script(Path, ISO2)
{
if(!Path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { Language } from '../../../Shared/Language';


/**
* Lookups a file in Sonarr and gets its original language ISO-693-1 code for it
* @author John Andrews
* @revision 4
* @minimumVersion 1.0.0.0
* @param {string} Path The full file path to lookup in Sonarr
* @param {bool} ISO2 If ISO-639-2 should be returned, otherwise ISO-639-1 will be used
* @output The language was found and stored in the variable OriginalLanguage
* @output The language was not found
*/
* @author John Andrews
* @uid 51cf3c4f-f4a3-45e2-a083-6629397aab90
* @revision 6
* @description Lookups a file in Sonarr and gets its original language ISO-693-1 code for it
* @param {string} Path The full file path to lookup in Sonarr
* @param {bool} ISO2 If ISO-639-2 should be returned, otherwise ISO-639-1 will be used
* @output The language was found and stored in the variable OriginalLanguage
* @output The language was not found
*/
function Script(Path, ISO2)
{
if(!Path)
Expand Down
3 changes: 2 additions & 1 deletion Scripts/Flow/Applications/Sonarr/Sonarr - Rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { Sonarr } from 'Shared/Sonarr';
/**
* This script will send a rename command to Sonarr
* @author Shaun Agius
* @uid 5ac44abd-cfe9-4a84-904b-9424908509de
* @version 1.0.0
* @revision 4
* @revision 5
* @param {string} URI Sonarr root URI and port (e.g. http://sonarr:1234)
* @param {string} ApiKey API Key
* @output Item renamed
Expand Down
18 changes: 9 additions & 9 deletions Scripts/Flow/File/File - Older Than.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/**
* Checks if a file is older than the specified days
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @param {int} Days The number of days to check how old the file is
* @param {bool} UseLastWriteTime If the last write time should be used, otherwise the creation time will be
* @output The file is older than the days specified
* @output the file is not older than the days specified
*/
* @author John Andrews
* @uid fbdd7b81-5112-43eb-a371-6aaf9b42977d
* @description Checks if a file is older than the specified days
* @revision 4
* @param {int} Days The number of days to check how old the file is
* @param {bool} UseLastWriteTime If the last write time should be used, otherwise the creation time will be
* @output The file is older than the days specified
* @output the file is not older than the days specified
*/
function Script(Days, UseLastWriteTime)
{
var fi = FileInfo(Flow.WorkingFile);
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Folder/Folder - Copy Folder.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Copies a folder from one location to another
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid 8efa6316-8108-4c1a-8aeb-49bb1c9f8323
* @description Copies a folder from one location to another
* @revision 4
* @param {string} SourceDirectory The directory to copy
* @param {string} DestinationDirectory The directory location to copy to
* @output Directory copied
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Hardware/NVIDIA - Below Encoder Limit.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Checks the count of NVIDIA encodes currently processing and see if it is below a limit
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid 071ef14f-46db-4e21-b438-30ac56b37cc4
* @description Checks the count of NVIDIA encodes currently processing and see if it is below a limit
* @revision 4
* @param {int} EncoderLimit The maximum number of encoders available
* @output Below encoder limit
* @output Not below encoder limit
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Image/Image - Convert (ImageMagick).js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Converts images using ImageMagick
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.4.0
* @uid 61aa25f3-74ed-44f6-a097-89149aea62c3
* @description Converts images using ImageMagick
* @revision 4
* @param {int} Quality The quality of the image, between 1 and 100
* @param {string} Extension The extension of the converted image
* @output Image was converted
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Utilities/7Zip - Compress to Zip.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Uses 7Zip to zip files
* @author John Andrews
* @revision 3
* @minimumVersion 1.0.0.0
* @uid e45d1199-8528-4031-ad52-66c4f0fb5f8e
* @description Uses 7Zip to zip files
* @revision 5
* @param {string} ArchiveFile The name of the zip file to create, if empty a random name will be used
* @param {string} Pattern The filename pattern to use, eg *.txt
* @param {bool} SetWorkingFileToZip If the working file in the flow should be set to the newly created zip file
Expand Down
5 changes: 3 additions & 2 deletions Scripts/Flow/Video/Video - Audio bitrate per channel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* Sets the bitrate for audio streams based off the number of channels - in place of "Quality" options found on some audio codecs
* @author CanOfSocks
* @revision 1
* @uid f25d9fc6-adfa-4c53-bf03-cc8fd6a98e9c
* @description Sets the bitrate for audio streams based off the number of channels - in place of "Quality" options found on some audio codecs
* @revision 3
* @param {int} Bitrate Desired bitrate per channel (default: 64000)
* @param {string} Codec Desired codec for each channel (default: ac3)
* @param {int} Buffer Buffer above desired bitrate to not transcode (default: 0)
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Bitrate greater than.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Checks if a video's bitrate is greater than specified.
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid c6c1a4b6-5f50-4b7d-81bd-e8d38af2b698
* @description Checks if a video's bitrate is greater than specified.
* @revision 4
* @param {int} MaxBitrateKbps The maximum to check in KBps
* @output Video's bitrate is greater than specified
* @output Video's bitrate is not greater than specified
Expand Down
7 changes: 3 additions & 4 deletions Scripts/Flow/Video/Video - Blocklist sonarr or radarr.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/**
* This script will search the active queue and blocklist and research
* For use alongside this strategy https://fileflows.com/docs/guides/sonarr-radarr
* @author Lawrence Curtis
* @version 1.0.1
* @revision 2
* @uid 8eb58ddf-f355-4442-8101-d6fd81a1b927
* @description This script will search the active queue and blocklist and research. For use alongside this strategy https://fileflows.com/docs/guides/sonarr-radarr
* @revision 3
* @param {string} URI Radarr/Sonarr root URI and port (e.g. http://radarr:1234)
* @param {string} ApiKey API Key
* @output Item blocklisted
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Deblocking.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Remove blocking artifacts from input video.
* @author Alexander von Schmidsfeld
* @revision 1
* @minimumVersion 1.0.0.0
* @uid bd6992b2-b123-4acd-a054-f6029121a415
* @description Remove blocking artifacts from input video.
* @revision 3
* @param {string} Filter Set filter type, can be weak or strong. Default is strong.
* @param {int} Block Set size of block, allowed range is from 4 to 512. Default is 8.
* @output Deblocked Video
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { Language } from '../../../Shared/Language';

/**
* Checks the "Movie Lookup" information for original language, and will delete any audio tracks
* with languages set that do not match the original language.
* Requires the "Movie Lookup" node to be executed first to work
* @author John Andrews
* @revision 3
* @minimumVersion 1.0.0.0
* @uid d3d80753-4c85-4202-af33-ba73e585c771
* @revision 5
* @description Checks the "Movie Lookup" information for original language, and will delete any audio tracks with languages set that do not match the original language. Requires the "Movie Lookup" node to be executed first to work
* @param {bool} TreatUnknownAsBad Treat a track with no language set as a bad language and do not include it, otherwise it will be treated as a good track
* @param {bool} KeepFirstAudio If no matching langauges are found, keep the first audio track, otherwise all audio could be removed
* @output Audio tracks were deleted
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Denoise Non-Linear Means.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Denoise frames using Non-Local Means algorithm.
* @description Denoise frames using Non-Local Means algorithm.
* @author Alexander von Schmidsfeld
* @revision 2
* @minimumVersion 1.0.0.0
* @uid b4ed740e-b851-4336-b412-a63ddc64ca0b
* @revision 4
* @param {string} Strength Set denoising strength. Default is 1.0. Must be in range [1.0, 30.0].
* @param {int} Patch Set patch size. Default is 5. Must be odd number in range [0, 99].
* @param {int} Research Set research size. Default is 7. Must be odd number in range [0, 99].
Expand Down
8 changes: 4 additions & 4 deletions Scripts/Flow/Video/Video - Devedse - InstallAbAv1.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* @description Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* Checks for the latest release of ab-av1, compares with the stored version,
* and updates if the latest version is newer.
* @author Devedse
* @revision 4
* @minimumVersion 1.0.0.0
* @uid e9d2cce8-938c-4849-b9c1-22157d95211f
* @revision 7
* @output The command succeeded
*/
function Script()
Expand Down Expand Up @@ -94,7 +94,7 @@ function Script()


// URL of the release and target directory
let targetDirectory = '/app/Data/tools/ab-av1/';
targetDirectory = '/app/Data/tools/ab-av1/';
let archivePath = targetDirectory + 'ab-av1.tar.zst';

// Ensure target directory exists
Expand Down
5 changes: 3 additions & 2 deletions Scripts/Flow/Video/Video - Devedse - InstallFfmpegBtbN.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/**
* Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* @description Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* Checks for the latest release of FFmpeg, compares with the stored version,
* and updates if the latest version is newer.
* @author Devedse
* @revision 4
* @uid 8c0bbcf8-90c0-44a3-8195-5a6814864063
* @revision 6
* @minimumVersion 1.0.0.0
* @output The command succeeded
*/
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Devedse - RunAbAv1.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* @description Important: This script was made to be ran with the docker version of FileFlows. Results on other platforms may vary.
* Prerequisites:
* Video - Devedse - InstallFfmpegBtbN.js
* Video - Devedse - InstallAbAv1.js
* Executes the ab-av1 command.
* @author Devedse
* @revision 4
* @minimumVersion 1.0.0.0
* @revision 6
* @uid 4b2d95ff-0b20-4be2-b945-e6efd8099feb
* @param {string} Preset The preset to use
* @param {string} SvtArguments The --svt arguments to pass to AbAv1. Only use if using SVT-AV1 encoder
* @param {string} Encoder The target encoder
Expand Down
7 changes: 3 additions & 4 deletions Scripts/Flow/Video/Video - Downscale greater than 1080p.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/**
* If a video's resolution is greater than 1080p, this script will update the FFMPEG Builder video track with a filter
* to downscale the video to 1080p when the FFMPEG Builder Executor runs.
* @author John Andrews
* @revision 4
* @minimumVersion 1.0.0.0
* @uid 62b01a65-b602-49cb-ac81-8583ead54ca7
* @description If a video's resolution is greater than 1080p, this script will update the FFMPEG Builder video track with a filter to downscale the video to 1080p when the FFMPEG Builder Executor runs.
* @revision 6
* @output Video is greater than 1080p, FFMPEG Builder Updated
* @output Video is not greater than 1080p
*/
Expand Down
7 changes: 3 additions & 4 deletions Scripts/Flow/Video/Video - Downscale greater than 720p.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/**
* If a video's resolution is greater than 720p, this script will update the FFMPEG Builder video track with a filter
* to downscale the video to 720p when the FFMPEG Builder Executor runs.
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid 9191f554-ecd5-4ef4-b83b-054f2878b09f
* @revision 4
* @description If a video's resolution is greater than 720p, this script will update the FFMPEG Builder video track with a filter to downscale the video to 720p when the FFMPEG Builder Executor runs.
* @output Video is greater than 720p, FFMPEG Builder Updated
* @output Video is not greater than 720p
*/
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Dynamic range.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Detects the dynamic range of a video e.g. SDR/HDR/HDR+DoVi/Dovi
* @author Lawrence Curtis
* @version 1.0.0
* @revision 1
* @uid d6d1bde2-0a1c-46d1-a9b2-a46d12eeffb7
* @description Detects the dynamic range of a video e.g. SDR/HDR/HDR+DoVi/Dovi
* @revision 3
* @output SDR
* @output HDR
* @output HDR + Dolby Vision
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Export All Subtitles.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Exports all subtitles from a video file
* @author John Andrews
* @revision 9
* @minimumVersion 1.0.9.0
* @uid fc30c661-4901-4474-8487-619a6257494b
* @revision 10
* @description Exports all subtitles from a video file
* @param {string} FileName Optional full filename of the video to extract subtitles from, if not passed in the current working file will be used
* @output Subtitles were exported
* @output No subtitles found to export
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - FPS greater than.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Checks if a video's fps is greater than specified.
* @author Alexander von Schmidsfeld
* @revision 3
* @minimumVersion 1.0.0.0
* @uid d4a4b12e-b9d5-47d1-b9d6-06f359cb0b2d
* @description Checks if a video's fps is greater than specified.
* @revision 5
* @param {int} MaxFps The maximum to check in fps
* @output Video's fps is greater than specified
* @output Video's fps is not greater than specified
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Has 2.0 Audio.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Determines if a video has a 2.0 (stereo) channel track
* @author John Andrews
* @revision 3
* @minimumVersion 1.0.0.0
* @uid f9928be4-23e3-43d8-aa5f-6e0d5a8fc736
* @description Determines if a video has a 2.0 (stereo) channel track
* @revision 5
* @output Does have 2.0
* @output Does not have 2.0
*/
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Has 5.1 Audio.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Determines if a video has a 5.1 channel track
* @author John Andrews
* @revision 4
* @minimumVersion 1.0.0.0
* @uid c87f9e27-6587-490b-a51e-f65e7542b891
* @description Determines if a video has a 5.1 channel track
* @revision 6
* @output Does have 5.1
* @output Does not have 5.1
*/
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Has Audio.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Checks if there is an audio track on a video file
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid c57f5849-0df1-4882-b668-62145bda1304
* @description Checks if there is an audio track on a video file
* @revision 4
* @output Has an audio track
* @output Does not have an audio track
*/
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Inject HDR10+ metadata.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Injects The Hdr10+ Metadata from the original file into the current working file
* @author https://github.com/GrimJu
* @revision 2
* @version 1.0.1
* @uid 594f7f1e-2a8e-4858-b83b-38d971bf48d1
* @revision 4
* @description Injects The Hdr10+ Metadata from the original file into the current working file
* @param {bool} FailFlowOnNoInject If set to true the flow will fail when the script fails to inject any metadata
* @output Success, metadata was injected and new working file was created
* @output Fail
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Flow/Video/Video - Resolution.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Determines a video's resolution and outputs accordingly
* @author John Andrews
* @revision 2
* @minimumVersion 1.0.0.0
* @uid d5962d9f-6200-4441-a0af-1c47f5ac8101
* @revision 4
* @description Determines a video's resolution and outputs accordingly
* @output Video Is 4k
* @output Video is 1080p
* @output Video is 720p
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Language } from '../../../Shared/Language';

/**
* Gets either TV Show Information or Movie Information from a meta flow element and updates any audio tracks with missing language codes
* @author John Andrews
* @uid 3a3909c7-aded-45d7-8340-b27e76589b02
* @revision 4
* @description Gets either TV Show Information or Movie Information from a meta flow element and updates any audio tracks with missing language codes
* with the original language of the show/movie
* Requires the "Movie Lookup" or "TV Show Lookup" to be executed first to work
* @author John Andrews
* @revision 1
* @minimumVersion 23.08.3.0
* @output Tracks updated
* @output No tracks updated
*/
Expand Down
Loading

0 comments on commit de92df7

Please sign in to comment.