podcast-to-youtube 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/podcast-to-youtube.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 290e26c150fcf41fc9d13cbb482463edf3769df7
|
4
|
+
data.tar.gz: 9a34f38c9da2a0c61186dbee086d1f0fe2c8bf50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf08403d59e421c90da0b018d48aa383e366006aa78417cea81ca5d0a1182539b4b36c53ecf4588d88d8dee5a742a86ff116411b296936bead280eeddaa09fae
|
7
|
+
data.tar.gz: dbfd37fd6664437cb06b90246c0b588d518c6b08fd2b4eb87f08d57ca085ce85022fe7c11e3c431c724649313237a3effde665a80d2908bb3621251ba48ab854
|
data/lib/podcast-to-youtube.rb
CHANGED
@@ -37,7 +37,14 @@ class PodcastUploader
|
|
37
37
|
video_title = "#{feed.title} - #{entry.title}"
|
38
38
|
if !video_already_exists(video_title)
|
39
39
|
audiofile = download_asset entry.enclosure_url
|
40
|
-
|
40
|
+
coverart_url = entry.itunes_image
|
41
|
+
# if entry has no specific coverart image, use the coverart specified
|
42
|
+
# for the whole feed
|
43
|
+
if coverart_url.nil? or coverart_url == ""
|
44
|
+
puts "could not find episode specific coverart, using the feed default coverart."
|
45
|
+
coverart_url = feed.itunes_image
|
46
|
+
end
|
47
|
+
coverart = download_asset coverart_url
|
41
48
|
videofile = generate_videofile(audiofile, coverart)
|
42
49
|
video_description = generate_video_description(entry, feed)
|
43
50
|
tags = %w(podcast)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: podcast-to-youtube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Trauth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: feedjira
|