Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Xiami: fix album & showcollect download error #130

Closed
wants to merge 8 commits into from
Commits on Jan 4, 2013
  1. @twlz0ne
Commits on Jan 15, 2013
  1. @twlz0ne

    Merge branch 'master' of https://github.com/soimort/you-get into upst…

    twlz0ne authored
    …ream
    
    Conflicts:
    	you_get/downloader/sina.py
Commits on Jan 21, 2013
  1. @twlz0ne
Commits on Jan 27, 2013
  1. @twlz0ne
Commits on Feb 16, 2013
  1. @twlz0ne
Commits on Mar 3, 2013
  1. @twlz0ne
Commits on Mar 9, 2013
  1. @twlz0ne
Commits on Mar 11, 2013
  1. @twlz0ne
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/you_get/downloader/xiami.py
View
4 src/you_get/downloader/xiami.py
@@ -42,7 +42,7 @@ def xiami_download_song(sid, output_dir = '.', merge = True, info_only = False):
download_urls([url], "%s - %s - %s" % (song_title, artist, album_name), ext, size, output_dir, merge = merge, faker = True)
def xiami_download_showcollect(sid, output_dir = '.', merge = True, info_only = False):
- xml = get_html('http://www.xiami.com/song/playlist/id/%s/type/3' % sid)
+ xml = get_html('http://www.xiami.com/song/playlist/id/%s/type/3' % sid, faker = True)
doc = parseString(xml)
tracks = doc.getElementsByTagName("track")
track_nr = 1
@@ -60,7 +60,7 @@ def xiami_download_showcollect(sid, output_dir = '.', merge = True, info_only =
track_nr += 1
def xiami_download_album(sid, output_dir = '.', merge = True, info_only = False):
- xml = get_html('http://www.xiami.com/song/playlist/id/%s/type/1' % sid)
+ xml = get_html('http://www.xiami.com/song/playlist/id/%s/type/1' % sid, faker = True)
album_name = r1(r'<album_name><!\[CDATA\[(.*)\]\]>', xml)
doc = parseString(xml)
tracks = doc.getElementsByTagName("track")
Something went wrong with that request. Please try again.