linsomniac/spotify_to_ytmusic

Invalid characters break playlist creator

Opened this issue · 1 comments

You cannot import this playlist into youtube because it has a character > in it's title.

Attempting to create a playlist with this character fails without telling you why. Here is the response from youtube:

{
  "error": {
    "code": 400,
    "message": "Sorry, something went wrong.",
    "errors": [
      {
        "message": "Sorry, something went wrong.",
        "domain": "global",
        "reason": "badRequest"
      }
    ],
    "status": "INVALID_ARGUMENT"
  }
}

Attempting to create a playlist without the > character works. I don't know what the entire list of allowed characters in a playlist is, but you'll have to scan and omit characters that aren't on that list.

Just tested with !@#$%^&*()_+-={}|[]\:";',./?~ + ` and it seems to work fine. The problem seems to lie with with > and < only, which is weird lol. I loaded in fancy fonts and other languages, those all seem to work fine. I suppose it might be worth it to make an issue on the ytmusicapi repo itself.