mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 02:35:54 -07:00
Merge pull request #385 from HaveAGitGat/add_notes
Create force_transcode_filter_notes
This commit is contained in:
commit
69b90d3879
1 changed files with 9 additions and 0 deletions
9
examples/force_transcode_filter_notes
Normal file
9
examples/force_transcode_filter_notes
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
// add COPYRIGHT=processed during video transcoding
|
||||||
|
// <io> -map 0 -c copy -c:v libx265 -metadata:s:v:0 COPYRIGHT=processed
|
||||||
|
|
||||||
|
// check COPYRIGHT=processed metadata to see if file has been transcoded or not
|
||||||
|
if(file.ffProbeData.streams[0]?.tags?.COPYRIGHT === 'processed'){
|
||||||
|
response.infoLog += 'File has already been transcoded \n';
|
||||||
|
response.processFile = false;
|
||||||
|
return response;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue