Commit Graph

24 Commits

Author SHA1 Message Date
Linus
0f384bb5ee Add docstrings; Remove verbose comments; Fix errors introduced with cleanup
This comment will:
- Transform docstrings above functions into docstrings
- Remove some way too verbose comments
- Apply some more recommendations from PEP8 forgotten last time
- Fix some errors introduced with the first code cleanup

Work left to do:
- Add params to docstrings
- Rename file variables
2017-06-28 16:21:58 +02:00
Linus
587f907ed8 Apply most best practices of PEP 8
This refactoring includes:
- Two empty lines before each global function
- Using '{0} {1}'.format(str1, str2) instead of str1 + ' ' + str2
  Sometimes this will make lines longer, sometimes shorter.
- Starting all comments with # + space + comment
- Make lines not longer than 80 characters in most cases
- Renaming some variables to make more sense
- Add some missing code like returns and Exceptions

Not included, but follows:
- Make some comments docstrings
- Rename all 'file' variables, only for Python 2
- Remove some way too verbose comments ;)
2017-06-28 16:21:58 +02:00
Ritiek
8af2479389 Update mechanism for fetching playlist tracks 2017-06-26 19:44:02 +05:30
Ritiek
0dfaf183b5 Test YouTube track title 2017-06-25 00:31:57 +05:30
Ritiek
ae29ff8f87 Split conversion code 2017-06-24 21:49:19 +05:30
Ritiek
5eba56d125 Message if audio stream not available on YouTube 2017-06-22 13:45:43 +05:30
Ritiek
258b21ff05 Fix getting input in python3 2017-06-22 02:27:18 +05:30
Ritiek
acfb2f0173 Fix encoding problems hopefully 2017-06-21 14:13:32 +05:30
Ritiek
5aa8c66db3 Small encoding changes 2017-06-21 12:58:15 +05:30
Ritiek
1848d3a16d Fix encoding error when getting YT track title 2017-06-21 00:52:18 +05:30
Ritiek
0c328079a8 Fix encoding problems in python2 2017-06-21 00:34:24 +05:30
Ritiek Malhotra
f36b3cc3f0 Remove unnecessary fix_encoding() 2017-06-20 22:29:51 +05:30
Ritiek
86506307ff Add instructions for getting FFmpeg up 2017-06-20 20:51:28 +05:30
Ritiek
20d4d7c2d5 Change defaults to FFmpeg 2017-06-20 20:25:47 +05:30
Ritiek
80c167e702 Add lots of comments 2017-06-18 02:57:55 +05:30
Ritiek
c270aa8365 Message on unavailable local tracks 2017-06-18 02:16:25 +05:30
Ritiek
e2af7bf1f3 Small fixes 2017-06-16 22:07:42 +05:30
Ritiek
44f34555b4 Use urllib2.quote() to fix encoding errors 2017-06-16 20:53:30 +05:30
Ritiek
74511cf596 Fix check_exists() from giving prompts on non-existent files 2017-06-16 02:06:08 +05:30
Ritiek
8c89da5ccf Some small fixes 2017-06-15 14:48:22 +05:30
Ritiek
11b3a61a22 Some minor fixes 2017-06-15 12:51:01 +05:30
Ritiek
4e4d7320b1 Rename to functions to snakecase 2017-06-15 12:10:32 +05:30
Ritiek
f515cc61ac Shift completely to urllib2 and mutagen 2017-06-15 03:47:34 +05:30
Ritiek
f2acf30aa4 Split code 2017-06-15 00:26:53 +05:30