ascagnel / mythPlex

Convert MythTV recordings to XBMC/Plex compatible names using the built-in MythTV APIs
Other
14 stars 14 forks source link

Setting this script up as a userjob in myth .28 #17

Open shottothedome opened 7 years ago

shottothedome commented 7 years ago

So I'm trying to get mythPlex running as a userjob in mythtv .28 on Debian Jessie. The script runs fine when i run it from command line and goes through the entire library. I've set it up in userjob as: /path/to/script/mythPlex.py %FILE% in userjob slot 1. It fails with no real information given

The mythPlex.py script has been chmod +x'd and I've set userjob to True in config along with silent to True. Any idea how I can debug what is causing it to fail?

UiharuKazari2008 commented 7 years ago

Last time i checked I don't think it supports command arguments. The best what i have figured to run it, is with a script in cron Here is my script i use in my fork: https://code.acr.moe/kazari/mythPlex/blob/master/mythPump.bash my fork has few modifications for using original air date as a fallback, skipping of files that are still recording, and etc. https://code.acr.moe/kazari/mythPlex