Search found 4 matches
- 20 Oct 2021, 17:28
- Forum: Scripting and Automation
- Topic: Custom code to guess media source based on file size and video bit rate
- Replies: 6
- Views: 10541
- 20 Oct 2021, 12:20
- Forum: Scripting and Automation
- Topic: Custom code to guess media source based on file size and video bit rate
- Replies: 6
- Views: 10541
Re: Custom code to guess media source based on file size and video bit rate
:P You are a crack. In the end I have left the code like this: { if (hd == 'SD') if (bytes.MB >= 700 && bitrate.mbps >= 1.1) return 'DVDRip' else return 'TVRip' if (hd == 'HD' && vf == '720p') if (bytes.GB >= 0.1 && bitrate.mbps >= 18) return 'BDRemux' else if (bitrate.mbps >= 8) return 'BDRip' else ...
- 20 Oct 2021, 12:18
- Forum: Scripting and Automation
- Topic: Custom code to guess media source based on file size and video bit rate
- Replies: 6
- Views: 10541
Re: I'm doing something wrong
Hi there. This is the correct code and working in version 4.8.5 and that in the new version it does not work: { (hd == 'SD' && vf == '240p') ? ( ((bytes/1073741824).round(1) >= 0.7 && bitrate >= 1100000 ? 'DVDRip' : {any{text.size()}{0} > 0 ? 'TVRip':'TVRip'})) : (hd == 'SD' && vf == '360p ...
- 20 Oct 2021, 10:19
- Forum: Scripting and Automation
- Topic: Custom code to guess media source based on file size and video bit rate
- Replies: 6
- Views: 10541
Custom code to guess media source based on file size and video bit rate
Hi there. I have this code that does not work with version 4.9.4 I want to select multimedia by format and bitrate. Or even format, video bitrate and file size. {ny} - { (hd == 'SD' && vf == '240p') ? ( ((bytes/1073741824).round(1) >= 0.7 && bitrate >= 1.1e6d ? 'DVDRip' : {any{text.size()}{0} > 0 ...