This repository has been archived by the owner on Jul 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
Hard coded stuff & special mentions
pastapojken edited this page Jan 10, 2020
·
3 revisions
-
parseMfilename.sh I have hard coded some things to make my life simpler. For instance, since the getMid grabs the first result, some of my movies would ALWAYS end up having the wrong ids. So there is a series of if's (directly after the
if $fetchMmetadata; then
, rememeber to keep themyID=$(./getMid.sh "${movie}");
, as it is the line that gets the movie id) checking if the movie matches the filename of a given movie and assigns a predefined id that i looked up. You might want to remove these or edit them to fit your needs. - The parseTVfilename.sh file, if the
getEpisodeName
variable is set, will use the TMDB api to search for the episode name of the file that the script is working on ( this is done by using the season number and episode number, which the scripts parses off the filename, and the fetched TMDB id ). This can take a couple of seconds and since the database is built sequentially, these seconds add up... - I haven't tested the script with other setups besides my own so I do not know how well it handles filenames and paths and such. I have done by best to make it flexible, but I haven't tested it. Anyway the scripts expect dots instead of spaces in the filenames, spaces will simply FUCK SHIT UP.
- Poster sizes are arbitrarily set in the getTVposter and getMposter files, there is a
map(select((.width | contains(680)) and (.height | contains(1000)))
and amap(select((.width | contains(1000)) and (.height | contains(1500)))
in the script that specify the size of the poster to fetch. These sizes seem to be, in my opinion, the most sensible and practical to use (also, the most common). If you disagree you can simply change them. I suggest you look into the TMDB api get images method if you want to modify these values.