improved getTagValue
Revert "Merge pull request #1168 from RyanCopley/stable5"

This reverts commit 5c8161bd2edaeb144267d816b3b2d7170f0e5fe4, reversing
changes made to a3e9b1c8fad8a238d1e342f08a7cf7743ffb59c1.
Merge remote-tracking branch 'upstream/stable5' into fix_ampache_content_length
Merge remote-tracking branch 'upstream/stable5' into fix_ampache_content_length
Merge pull request #1180 from sezuan/fix_ampache_content_length

Improved getTagValue