podcast-to-youtube 0.3.2 → 0.3.3
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 +3 -3
- 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: beb431d7f5c111fb116733ce960ece662166652c
|
4
|
+
data.tar.gz: 856eeb8579f573c549f12f21d9a41a01c269f5e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f38bfc83441bb417df0dd4d0a2755cc842217e2775a7a1491ee2f2a78371d4eac3ce418d9387c0058d0f3f9b41b97e823334bae375b55f9f03322b532bdcda9b
|
7
|
+
data.tar.gz: 70c448dd069d33ec799ed6f270da866551cfb3134759b98b137e2c584f8f2312e28a9a6de514001c768db097d0ac470d0260eb15643c8d3dd5429a86c63f0997
|
data/lib/podcast-to-youtube.rb
CHANGED
@@ -38,11 +38,11 @@ class PodcastUploader
|
|
38
38
|
if !video_already_exists(video_title)
|
39
39
|
audiofile = download_asset entry.enclosure_url
|
40
40
|
coverart = download_asset entry.itunes_image
|
41
|
-
videofile = generate_videofile
|
41
|
+
videofile = generate_videofile(audiofile, coverart)
|
42
42
|
video_description = generate_video_description(entry, feed)
|
43
43
|
tags = %w(podcast)
|
44
44
|
|
45
|
-
upload_video
|
45
|
+
upload_video(video_title, video_description, video_category_id, privacy, tags, videofile)
|
46
46
|
else
|
47
47
|
puts "video #{video_title} already exists on Youtube. Skipping."
|
48
48
|
end
|
@@ -60,7 +60,7 @@ class PodcastUploader
|
|
60
60
|
def upload_video(video_title, video_description, video_category_id, privacy, tags, videofile)
|
61
61
|
puts "uploading videofile to Youtube"
|
62
62
|
refresh_authentication
|
63
|
-
@account.upload_video
|
63
|
+
@account.upload_video(videofile, privacy_status: privacy, title: video_title, description: video_description, category_id: video_category_id, tags: tags)
|
64
64
|
end
|
65
65
|
|
66
66
|
def video_already_exists(video_title)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Trauth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: feedjira
|