GHC 2016-12-05

5 comments.

, https://git.io/v1KJb in Homebrew/homebrew-core
@nijikon Actually, https://github.com/Homebrew/formula-patches/pull/94 hasn't been merged, and after merging it, the commit 2b3e4da needs to be changed to the merged commit in formula-patches' master branch...

, https://git.io/v1KtQ in Homebrew/homebrew-core
imagemagick 6.9.6-7
===================

Created with `brew bump-formula-pr`.

---

Please remember to
```
brew mirror imagemagick
```
when merging.

, https://git.io/v1KJN in Homebrew/homebrew-core
The patch is exactly the same. A revision bump is pointless.

, https://git.io/v1Kt7 in soimort/you-get
[lizhi] extractor overhaul
==========================

Lizhi extractor has stopped working. In particular, there are two major changes:

- URL format change: no more `#/` in URL paths (http://www.lizhi.fm/#/1309873/ => http://www.lizhi.fm/1309873/);
- The `/api/audio/{radio_id}/{audio_id}` API now returns 404.

This is a rewrite based solely on the `/api/radio_audios` API, which was previously only used in playlist extraction. Since I could not locate a `/api/audio/{radio_id}/{audio_id}` replacement (I only checked some XHR requests in the web interface), for single episode downloads, I'm simply looking up the ID among the full list of episodes. If someone knows an endpoint comparable to `/api/audio/{radio_id}/{audio_id}` I'm all ears.

To test this new extractor, you can try the sample URLs in the source code:

```sh
# Single episode
$ you-get http://www.lizhi.fm/549759/18864883431656710/
# Playlist
$ you-get -l http://www.lizhi.fm/549759/
```

## Appendix

The response structure of `/api/radio_audios`:

```json
$ curl -sS 'http://www.lizhi.fm/api/radio_audios?s=0&l=65535&band=1309873' | jq .
[
  {
    "name": "不知道会不会有第二集电台",
    "url": "http://cdn5.lizhi.fm/audio/2016/08/22/30841181492746758_hd.mp3",
    "short_url": "",
    "media_path": "",
    "cover": "",
    "desc": "",
    "duration": 806,
    "create_time": 1471880071000,
    "stats": null,
    "type": 0,
    "hasCopyright": 0,
    "fixedHighPlayUrl": "http://cdn5.lizhi.fm/audio/2016/01/12/2511187384627515398_hd.mp3",
    "fixedLowPlayUrl": "http://cdn5.lizhi.fm/audio/2016/01/12/2511187384627515398_sd.m4a",
    "radioBand": null,
    "id": "30841181492746758",
    "rid": "30449530365532288"
  },
  {
    "name": "不知道有没有第二集电台",
    "url": "http://cdn5.lizhi.fm/audio/2016/08/06/2549460478052049414_hd.mp3",
    "short_url": "",
    "media_path": "",
    "cover": "",
    "desc": "",
    "duration": 652,
    "create_time": 1470413231000,
    "stats": null,
    "type": 0,
    "hasCopyright": 0,
    "fixedHighPlayUrl": "http://cdn5.lizhi.fm/audio/2016/01/12/2511187384627515398_hd.mp3",
    "fixedLowPlayUrl": "http://cdn5.lizhi.fm/audio/2016/01/12/2511187384627515398_sd.m4a",
    "radioBand": null,
    "id": "2549460478052049414",
    "rid": "30449530365532288"
  }
]
```

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/soimort/you-get/1543)
<!-- Reviewable:end -->

, https://git.io/v1KJA in isaacs/github
Also, GitHub Pages is a free service (AFAIK it only works with public repos, which are free). So stop whining.