Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pafy (0.5.2-2.1) unstable; urgency=medium
 .
   * backend_youtube_dl.py temp fix
Author: anticapitalista <antix@operamail.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2017-09-16

--- pafy-0.5.2.orig/pafy/backend_youtube_dl.py
+++ pafy-0.5.2/pafy/backend_youtube_dl.py
@@ -50,7 +50,7 @@ class YtdlPafy(BasePafy):
         self._likes = self._ydl_info['like_count']
         self._dislikes = self._ydl_info['dislike_count']
         self._username = self._ydl_info['uploader_id']
-        self._category = self._ydl_info['categories'][0]
+        self._category = self._ydl_info['categories'][0] if self._ydl_info['categories'] else ''
         self._bigthumb = g.urls['bigthumb'] % self.videoid
         self._bigthumbhd = g.urls['bigthumbhd'] % self.videoid
         self.expiry = time.time() + g.lifespan
