Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
applicable to multi country when fetching app information
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyonori-matsumoto committed Jun 25, 2016
1 parent 96c99b8 commit 8dacd6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/market_bot/play/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,12 @@ def self.parse(html, opts={})
def initialize(package, opts={})
@package = package
@lang = opts[:lang] || MarketBot::Play::DEFAULT_LANG
@country = opts[:country] || MarketBot::Play::DEFAULT_COUNTRY
@request_opts = MarketBot::Util.build_request_opts(opts[:request_opts])
end

def store_url
"https://play.google.com/store/apps/details?id=#{@package}&hl=#{@lang}"
"https://play.google.com/store/apps/details?id=#{@package}&hl=#{@lang}&gl=#{@country}"
end

def update
Expand Down

0 comments on commit 8dacd6b

Please sign in to comment.