lib/podcast_index/podcast.rb in podcast_index-0.2.1 vs lib/podcast_index/podcast.rb in podcast_index-0.3.0
- old
+ new
@@ -53,12 +53,13 @@
def find_all_by_tag(tag:)
response = Api::Podcasts.by_tag(tag: tag)
from_response_collection(response)
end
- def find_all_music_by_term(medium:, term:, val: nil, aponly: nil, clean: nil, fulltext: nil)
- response = Api::Search.music_by_term(term: term, val: val, aponly: aponly, clean: clean, fulltext: fulltext)
+ def find_all_music_by_term(medium:, term:, val: nil, aponly: nil, clean: nil, fulltext: nil, max: nil)
+ response = Api::Search.music_by_term(term: term, val: val, aponly: aponly, clean: clean, fulltext: fulltext,
+ max: max)
from_response_collection(response)
end
def find_all_by_medium(medium:)
response = Api::Podcasts.by_medium(medium: medium)
@@ -74,16 +75,16 @@
def find_all_by_dead(*)
response = Api::Podcasts.dead
from_response_collection(response)
end
- def find_all_by_term(term:, val: nil, aponly: nil, clean: nil, fulltext: nil)
- response = Api::Search.by_term(term: term, val: val, aponly: aponly, clean: clean, fulltext: fulltext)
+ def find_all_by_term(term:, val: nil, aponly: nil, clean: nil, fulltext: nil, max: nil)
+ response = Api::Search.by_term(term: term, val: val, aponly: aponly, clean: clean, fulltext: fulltext, max: max)
from_response_collection(response)
end
- def find_all_by_title(title:, val: nil, clean: nil, fulltext: nil)
- response = Api::Search.by_title(title: title, val: val, clean: clean, fulltext: fulltext)
+ def find_all_by_title(title:, val: nil, clean: nil, fulltext: nil, max: nil)
+ response = Api::Search.by_title(title: title, val: val, clean: clean, fulltext: fulltext, max: max)
from_response_collection(response)
end
def find_all_by_recent(recent:, max: nil, since: nil, lang: nil, categories: [], exclude_categories: [])
response = Api::Recent.feeds(max: max, since: since, lang: lang, cat: categories.join(","),