jasoneppink/FluxVision

IOError: File not open for writing

Closed this issue · 1 comments

I like your project but you missed to open for write count_playlist file on play_youtube.py
then i got this error:
Traceback (most recent call last):
File "./play_youtube.py", line 88, in
count_playlist.write(str(value + 1))
IOError: File not open for writing

I fixed it modifying line 88 of play_youtube.py from:
with open(abs_path + '.count_playlist') as count_playlist:
to:
with open(abs_path + '.count_playlist', 'w' ) as count_playlist:

Good catch. Thank you!