ampache/ampache — pull request #412 by wagnered (2014-08-27 05:53:34+00:00)
Title: Fixed ability to catalog TV shows.

Corrected typo in lib/class/tvshow.class.php

In lib/class/vainfo.class.php changed $info elements to agree with $Tag elements because tv info was getting lost in successive passes. The elements of the $tag array are what are provided by the getID3 library.

$tvshow was being used as both string and int and is ultimately used as id for storage in table. So added:
" $info['tv_show_name'] = $info['tv_show_name'] ?: trim($tags['tv_show_name']);"

In lib/class/tvshow_episode.class.php changed $tvshow_season to tv_season_id to avoid confusion with tv show season number.

Still trying to decide how to handle "tv show art", "tv season art", and "art" as the mp4/ITunes specs make no differentation between different kinds of art. The cover art would be delineated by the stored season/episode number.