Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Configuration | |
| const WAIT_OPEN_PLAYLIST_POPUP = 1000; | |
| const WAIT_AFTER_ADD_PLAYLIST = 1500; | |
| const TARGET_PLAYLIST_NAME = 'To Do'; | |
| // Should the new playlist be in reverse order? | |
| const REVERSE = false; | |
| // Should liked items be skipped? | |
| const SKIP_LIKED = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| def createFolder(directory): | |
| try: | |
| if not os.path.exists(directory): | |
| os.makedirs(directory) | |
| except OSError: | |
| print ('Error: Creating directory. ' + directory) | |