1. 18 Dec, 2019 36 commits
  2. 13 Dec, 2019 4 commits
    • Add ISO-8859-1 awareness to IcyDecoder · cad3b183
      Also change IcyInfo.rawMetatadata from String to byte[]
      
      ICY doesn't specify the character encoding, and there are streams
      not using UTF-8 (issue:#6753). It seems the default of at least one
      server is ISO-8859-1 so let's support that as a fallback:
      https://github.com/savonet/liquidsoap/issues/411#issuecomment-288759200
      
      Also update IcyDecoder to skip strings it doesn't recognise at all
      instead of decoding invalid characters.
      
      The feed from issue:#6753 now decodes accents correctly:
      EventLogger:   ICY: title="D Pai - Le temps de la rentrée", url="null"
      PiperOrigin-RevId: 285388522
      ibaker committed
    • Use SpannedSubject in WebvttCueParserTest · 38e9213a
      This is a useful test to see if it works well in a real situation.
      
      PiperOrigin-RevId: 285386471
      ibaker committed
    • Remove API version dependency of Util.normalizeLanguageCode · 1ddac0c7
      We previously used Locale.fromLanguageTag and then toLanguageTag to automatically
      filter out invalid tags and to replace deprecated tags. However, this only works
      for API 21+.
      
      This change does no longer rely on the platform methods and instead:
       1. Keeps invalid tags as they are. This may help if developers rely on
          non-spec-complaint language tags (for example, #6681).
       2. Adds a list of deprcated tags and their modern replacements to our code
       3. Normalizes some short codes that have been superseded by macrolanguage codes by
          their macrolanguage equivalent.
      
      Issue:#6681
      PiperOrigin-RevId: 285384841
      tonihei committed
    • Tighten the documentation of MetadataInputDecoder · 241a3426
      Document that limit() is respected, but position() and arrayOffset()
      are assumed to be zero.
      
      PiperOrigin-RevId: 285384613
      ibaker committed