Comments (2)
Didn't work how?
Logs?
from sickbeard_mp4_automator.
After many tries, I've find the solution :
# Skip a VFQ subtitle track if VFF exist
sub_streams = [a for a in info.subtitle if a.metadata.get('language', '') == 'fra']
mp.log.info("Found %s stream subtitle" % len(sub_streams))
fra_vfq_sub_streams = [a for a in info.subtitle if a.metadata.get('language', '') == 'fra' and ('vfq' in stream.metadata.get('title', '').lower() or 'ca' in stream.metadata.get('title', '').lower().split(' ') or 'canadien' in stream.metadata.get('title', '').lower())]
fra_forced_sub_streams = [a for a in info.subtitle if "forc" and "vff" in a.metadata.get('title', '').lower()]
mp.log.info("Found %s fra forced stream subtitle" % len(fra_forced_sub_streams))
if stream in fra_vfq_sub_streams and len(fra_forced_sub_streams) >=1:
mp.log.info("found vfq or ca in title with fra language and 1 or more track => Delete the vfq subtitle track")
return True
return False
Thank you for quick reply :)
from sickbeard_mp4_automator.
Related Issues (20)
- Language flow HOT 3
- [Question] Speed up process? HOT 2
- sonarr-sma docker -- having issues trying to get ffmpeg to work with nvidia. HOT 31
- Unable to get Dolby Atmos in Plex on the Apple TV HOT 1
- Use hardware encoder and software decoder HOT 5
- Invalid format string in avcodecs.py NVEncH265Codec HOT 3
- Error in postSonarr with recent Sonarr update (4.0.1.929 — Jan 19 2024) HOT 2
- Generic Permissions HOT 1
- How to get/configure SMA to use my Nvidia GPU HOT 5
- SAB Stating it is unable to run script HOT 2
- Problem embedding external subtitles HOT 1
- Subtitle marked as default HOT 11
- Convert only french audio track if not in codec list HOT 7
- Not Processing files running in Manual Mode HOT 9
- Embed subtitles srt. HOT 7
- Error processing some anime HOT 6
- subtitle errors HOT 8
- [Question] Proper way to utilize output-directory and temp-extension HOT 1
- post_process scripts not running HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sickbeard_mp4_automator.