Skip to content

Commit

Permalink
archive/ted/cmd/order: Use folders for ordered injection.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Jan 25, 2015
1 parent 28d7cfb commit 7757523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion archive/ted/cmd/inject/inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func main() {
func inject(talks []ted.Talk) {
for _, talk := range talks {
date := talk.Date.Format("2006-01")
fmt.Printf("wget -O \"%s - %s (%s) [%v]\" %s.mp4\n", date, talk.Title, talk.Event, talk.Duration, talk.Download)
fmt.Printf("wget -O \"%s - %s (%s) [%v].mp4\" %s\n", date, talk.Title, talk.Event, talk.Duration, talk.Download)
}
}

Expand Down
3 changes: 2 additions & 1 deletion archive/ted/cmd/order/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func order(talks []ted.Talk) {
}
defer f.Close()
w = f
fmt.Fprintf(w, "mkdir -p %q\n", date)
}
fmt.Fprintf(w, "wget -O \"%s - %s (%s) [%v].mp4\" %s\n", date, talk.Title, talk.Event, talk.Duration, talk.Download)
fmt.Fprintf(w, "wget -O \"%s/%s (%s) [%v].mp4\" %s\n", date, talk.Title, talk.Event, talk.Duration, talk.Download)
prev = date
}
}
Expand Down

0 comments on commit 7757523

Please sign in to comment.