hasgeek.tv
hasgeek.tv copied to clipboard
Refactor import playlist code
There is code duplication in process_playlist
https://github.com/hasgeek/hasgeek.tv/blob/master/hgtv/views/playlist.py#L23 and process_video
https://github.com/hasgeek/hasgeek.tv/blob/master/hgtv/views/video.py#L30. Refactor the code.