It's always fun when user fix their own problems it saves me the work of doing it myself. Good job. Do you know if this issue is only related to you or does all user using SRJG on the AIOS have the same issue as you????
As far as the genre not showing up it is related to this function that probably needs to be rewritten to be less constrictive in the srjg.cgi file.
Basically the problem simply means that the genre name in the NFO file does not match any of the genre images. One quick fix that would probably help although is not the perfect solution would be to convert the Img_genre string to all caps and then doing the same for the genre images. That way we would at least eliminate the problem with Science Fiction vs Science fiction etc ..... Everything would be caps. By the way you do not seem to be using the latest available version on the google code SRJG site; not that it really matter since officially we have not yet released a stable version; still working on the documentation.Code:if [ "$mode" = "genreSelection" ]; then # pulls out the genre of the movies # The first line does the following: Pull data from database; remove all leading/trailing white spaces; sort and remove duplicate # remove possible empty line that may exist; remove any blank line # that may be still present. ${Sqlite} -separator '' "${Database}" "SELECT genre FROM t1" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' | sort -u | sed '/<name/!d;s:.*>\(.*\)</.*:\1:' | grep "[!-~]" > /tmp/srjg_genre.list # Add "All Movies" depending of the language, into the genre list sed -i 1i"$AllMovies" /tmp/srjg_genre.list while read LINE do # translate to find genre thumbnails Img_genre=`sed "/|${LINE}>/!d;s:.*>\(.*\)|:\1:" "${Jukebox_Path}lang/${Language}_genre"` if [ -z "$Img_genre" ]; then Img_genre=${LINE}; fi if [ ! -e "${Jukebox_Path}images/genre/$Img_genre.jpg" ]; then Img_genre="Unknown"; fi cat <<EOF <item> <title>${LINE}</title> <path>${Jukebox_Path}images/genre</path> <file>$Img_genre</file> </item> EOF done < /tmp/srjg_genre.list fi
Cheers !!!!



. Good job. Do you know if this issue is only related to you or does all user using SRJG on the AIOS have the same issue as you????
Reply With Quote