Skip to content

Commit

Permalink
add notes how to upgrade and fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix committed Apr 23, 2017
1 parent 4645088 commit 851b5e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Can download your podcasts.
## Usage

```
Podcatcher 0.1.0
Podcatcher 0.2.1
usage: podcatcher.py [-h] [-f FEED] [-d DOWNLOAD_DIR] [--version]
CLI podcast client.
Expand Down Expand Up @@ -46,4 +46,6 @@ My Podcastlist can be found in this gist: [fliiiix/259bc74a40c9bf56cef7d9cb9b744
### How to keep track what's downloaded

Each item should have a guid which is saved to `$podcastname/.guid_cache` where each line represents a
downloaded podcast. The format for it is `%Y_%m_%d %H:%M|GUID` the date is the download time.
downloaded podcast. The format for it is `%Y_%m_%d %H:%M|GUID` the date is the download time.

To migrate from 0.1 to 0.2 or later just add `XXXX_XX_XX XX:XX|`.
4 changes: 3 additions & 1 deletion podcatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Podcast(object):
def __init__(self, feedlist, download_dir):
self.version = "0.2.0"
self.version = "0.2.1"
self.feeds = []
self.base_folder = download_dir
self.feedlist = feedlist
Expand Down Expand Up @@ -43,6 +43,8 @@ def build_podcast(self, title):
else:
open(p, 'a').close()

# well, this removes the date from the guid
guids = list(map(lambda uuid: uuid[17:], guids))
return (p, guids)


Expand Down

0 comments on commit 851b5e6

Please sign in to comment.