diff --git a/pybikes/youbike.py b/pybikes/youbike.py index fec9c883..98c141ce 100644 --- a/pybikes/youbike.py +++ b/pybikes/youbike.py @@ -8,7 +8,6 @@ class YouBikeTw(BikeShareSystem): - FEED_URL_V1 = "https://apis.youbike.com.tw/json/station-yb1.json" FEED_URL_V2 = "https://apis.youbike.com.tw/json/station-yb2.json" unifeed = True @@ -26,10 +25,7 @@ def __init__(self, tag, meta, uid): def update(self, scraper=None): scraper = scraper or PyBikesScraper() - v1 = json.loads(scraper.request(self.FEED_URL_V1)) - v2 = json.loads(scraper.request(self.FEED_URL_V2)) - - data = v1 + v2 + data = json.loads(scraper.request(self.FEED_URL_V2)) data = filter( lambda item: item.get("area_code") == self.uid and item.get("lat") != ""