Use StringIO to avoid get data from internet twice
Merge pull request #3 from phuang/master

Use TemoraryFile to avoid using urlopen() twice on one url
Update lib/metahandler/metahandlers.py

Added decode('utf-8') of movie/tvshow title
Update lib/metahandler/metahandlers.py

Fix media_type on logging
Work around MySQL library limitations

Tried using fetchone with limit=1 but it still crashes if for some
reason there is more than one result
Rewrite pack install logic for MySQL

Python didn't return the right data types for executemany() so metapack
installs were failing in on MySQL setups
Fix pack install/temp db upgrade code in MySQL setups

- Limitation in MySQL lib requires all values to be read from a select
statement (even though they're not used), else it throws errors.
- Rewrite metapack install logic for MySQL setups. Typo in connection
string was causing installs to fail.
- New logic accounts for installing metapacks from old databases
(tvshow_meta doesn't have a year column) in new databases
Merge pull request #6 from bstrdsmkr/master

Fixes for MySQL setups
Merge branch 'master' into frodo