Adding sorting by program's name, to partially solve issue #1.
Removed a duplicated get_episodi call that was throwing unmanaged errors.
Added or BadStatusLine to the error catch expression to manage HTTP errors
Merge branch 'heads/master' into issue1. Issue #1 can be closed because Kodi (XBMC) remembers the user's sorting preference, so there is no need to implement such a specific function.