{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/8360","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/8360/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/8360/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/8360/events","html_url":"https://github.com/rg3/youtube-dl/pull/8360","id":129755540,"number":8360,"title":"Remove extra spaces & trim title","user":{"login":"dyn888","id":16522035,"avatar_url":"https://avatars.githubusercontent.com/u/16522035?v=3","gravatar_id":"","url":"https://api.github.com/users/dyn888","html_url":"https://github.com/dyn888","followers_url":"https://api.github.com/users/dyn888/followers","following_url":"https://api.github.com/users/dyn888/following{/other_user}","gists_url":"https://api.github.com/users/dyn888/gists{/gist_id}","starred_url":"https://api.github.com/users/dyn888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyn888/subscriptions","organizations_url":"https://api.github.com/users/dyn888/orgs","repos_url":"https://api.github.com/users/dyn888/repos","events_url":"https://api.github.com/users/dyn888/events{/privacy}","received_events_url":"https://api.github.com/users/dyn888/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-29T12:45:30Z","updated_at":"2016-01-29T14:32:07Z","closed_at":"2016-01-29T13:06:27Z","pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/8360","html_url":"https://github.com/rg3/youtube-dl/pull/8360","diff_url":"https://github.com/rg3/youtube-dl/pull/8360.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/8360.patch"},"body":"This removes extra spaces in title, also removes any leading and trailing whitespace, before title size check and after title is copied to 'fulltitle'. Repeated spaces can waste space in a filename, leading spaces can mess up sorting, and make file handling more difficult."},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/176782666","html_url":"https://github.com/rg3/youtube-dl/pull/8360#issuecomment-176782666","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/8360","id":176782666,"user":{"login":"dyn888","id":16522035,"avatar_url":"https://avatars.githubusercontent.com/u/16522035?v=3","gravatar_id":"","url":"https://api.github.com/users/dyn888","html_url":"https://github.com/dyn888","followers_url":"https://api.github.com/users/dyn888/followers","following_url":"https://api.github.com/users/dyn888/following{/other_user}","gists_url":"https://api.github.com/users/dyn888/gists{/gist_id}","starred_url":"https://api.github.com/users/dyn888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyn888/subscriptions","organizations_url":"https://api.github.com/users/dyn888/orgs","repos_url":"https://api.github.com/users/dyn888/repos","events_url":"https://api.github.com/users/dyn888/events{/privacy}","received_events_url":"https://api.github.com/users/dyn888/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T14:32:07Z","updated_at":"2016-01-29T14:32:07Z","body":"Because title goes to filename. Some videos have leading and trailing spaces and it creates files with those, which is generally not desired. This could also be done at the end with the final filename, not limited to the title -- filename is more important. I am in no rush to add this, but it could be an useful option, limited to filenames, similar to `--restrict-filenames`, just for whitespace removing."}}