{"id":5827,"date":"2018-10-22T16:03:35","date_gmt":"2018-10-22T13:03:35","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5827"},"modified":"2018-10-22T16:03:35","modified_gmt":"2018-10-22T13:03:35","slug":"attributeerror-nonetype-object-has-no-attribute-startswith","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/10\/22\/attributeerror-nonetype-object-has-no-attribute-startswith\/","title":{"rendered":"AttributeError: &#8217;NoneType&#8217; object has no attribute &#8217;startswith&#8217;"},"content":{"rendered":"<p>Not sure if this URL is supported, but the error message doesn&#8217;t look quite right, nor clear as to what the problem is from a user&#8217;s perspective:<\/p>\n<pre><code>$ yle-dl 'https:\/\/yle.fi\/aihe\/artikkeli\/2013\/04\/11\/aanien-illoissa-kuunnellaan-kadonneitakin-aania'\r\nyle-dl 2.37: Download media files from Yle Areena and El\u00e4v\u00e4 Arkisto\r\nCopyright (C) 2009-2018 Antti Ajanki &lt;antti.ajanki@iki.fi&gt;, license: GPLv3\r\n\r\nTraceback (most recent call last):\r\n  File \"\/usr\/local\/bin\/yle-dl\", line 11, in &lt;module&gt;\r\n    load_entry_point('yle-dl==2.37', 'console_scripts', 'yle-dl')()\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/yledl.py\", line 377, in main\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/yledl.py\", line 252, in download\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/extractors.py\", line 543, in extract\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/extractors.py\", line 736, in extract_clip\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/extractors.py\", line 983, in program_info_for_pid\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/extractors.py\", line 791, in media_flavors\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/extractors.py\", line 875, in download_flavors\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/backends.py\", line 499, in __init__\r\n  File \"build\/bdist.linux-x86_64\/egg\/yledl\/backends.py\", line 40, in __init__\r\nAttributeError: 'NoneType' object has no attribute 'startswith'<\/code><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not sure if this URL is supported, but the error message doesn&#8217;t look quite right, or clear as to what the problem is from a user&#8217;s perspective.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[],"class_list":["post-5827","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5827"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5827\/revisions"}],"predecessor-version":[{"id":5828,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5827\/revisions\/5828"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}