# Play store onebox issue

**URL:** https://meta.discourse.org/t/play-store-onebox-issue/23146
**Category:** Feature
**Created:** [2014年十二月15日 11:22 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146 "2014-12-15T11:22:19Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![ForgotPants](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/forgotpants/32/31677_2.png) [@ForgotPants](https://meta.discourse.org/u/ForgotPants)
#### Post date: [2014年十二月15日 11:22 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/1 "2014-12-15T11:22:19Z")

</div>

Oneboxing links from the Play store generally end with a ‘0’ for some reason,

 ![](https://global.discourse-cdn.com/meta/original/3X/0/e/0e2fb422705234a20c8f952836bf58f929cbd9b9.png)

This seems to be happening on Meta as well. Also, is there a way to set a maximum character limit for oneboxing from third party sites?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2014年十二月15日 22:38 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/2 "2014-12-15T22:38:24Z")

</div>

The oneboxer for Google Play should probably be revisited for improvements. Community PRs welcome in this area!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2014年十二月21日 08:57 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/3 "2014-12-21T08:57:23Z")

</div>

this looks like a oneboxer bug to me.

---

<div class="post-metadata">

### Author: ![digitalsurgeon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalsurgeon/32/37288_2.png) [@digitalsurgeon](https://meta.discourse.org/u/digitalsurgeon)
#### Post date: [2014年十二月21日 17:29 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/4 "2014-12-21T17:29:10Z")

</div>

If no one is looking into this bug, I would like to work on it. Since I am new to ruby & rails my progress will be slow.  
I am able to reproduce it on my development install:

![](https://global.discourse-cdn.com/meta/original/3X/5/4/54a0d2bdcc08ec85f4c8187ebe153df810bd1ea9.png)

That 0 is the price of the item, since them item is free, its zero:

> <https://github.com/discourse/onebox/blob/main/templates/googleplayapp.mustache>

for paid items, the price shows up correctly:

![](https://global.discourse-cdn.com/meta/original/3X/0/8/08c101f64978eb6fcf1be1981a7d52d05e114d6d.png)

Perhaps for free items it should show string “free” instead of zero. if we have such a string in discourse, I will create the pull request to onebox

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2014年十二月22日 03:41 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/5 "2014-12-22T03:41:33Z")

</div>

Sounds like a fine solution.

---

<div class="post-metadata">

### Author: ![digitalsurgeon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalsurgeon/32/37288_2.png) [@digitalsurgeon](https://meta.discourse.org/u/digitalsurgeon)
#### Post date: [2014年十二月22日 11:55 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/6 "2014-12-22T11:55:14Z")

</div>

created a pull request:  
[https://github.com/discourse/onebox/pull/259](https://github.com/discourse/onebox/pull/259)

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2014年十二月22日 12:31 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/7 "2014-12-22T12:31:12Z")

</div>

I’m sorry, but this solution seems wrong to me. Ideally the price shouldn’t be visible at all if it’s free. Adding the word “Free” opens a can of worms since it’s currently not possible (and probably not needed) to add translations.

Moreover, I noticed that the title (which should be the most important thing) isn’t shown at all (it’s missing in the template). The developer of an app shouldn’t be the heading of the onebox.

---

<div class="post-metadata">

### Author: ![digitalsurgeon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalsurgeon/32/37288_2.png) [@digitalsurgeon](https://meta.discourse.org/u/digitalsurgeon)
#### Post date: [2014年十二月22日 12:50 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/8 "2014-12-22T12:50:10Z")

</div>

Multiple other onebox templates are using english text, examples at the end.  
I think showing free when an item is actually free would make sense. About the title, I can update the commit and put the title in the mustache template.

> <https://github.com/discourse/onebox/blob/main/templates/githubblob.mustache>

> <https://github.com/discourse/onebox/blob/main/templates/stackexchange.mustache>

---

<div class="post-metadata">

### Author: ![digitalsurgeon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalsurgeon/32/37288_2.png) [@digitalsurgeon](https://meta.discourse.org/u/digitalsurgeon)
#### Post date: [2014年十二月25日 11:29 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/9 "2014-12-25T11:29:26Z")

</div>

So this is how it now shows with that pull request:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/7/b76823fe1ffb9c1012e510353672b072b9d2008c.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2014年十二月26日 00:40 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/10 "2014-12-26T00:40:38Z")

</div>

Way too much text, you need to truncate to something way shorter

---

<div class="post-metadata">

### Author: ![digitalsurgeon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/digitalsurgeon/32/37288_2.png) [@digitalsurgeon](https://meta.discourse.org/u/digitalsurgeon)
#### Post date: [2014年十二月30日 07:16 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/11 "2014-12-30T07:16:20Z")

</div>

I made the description text shorter. Now how it looks like:

![](https://global.discourse-cdn.com/meta/original/3X/b/5/b575c51daa888b07caf79e7c1d4900a18228830d.png)

The number of chars for description is in the google play app engine itself, perhaps the work of making sure the description text is not too big could be off-loaded to the framework.

This was merged into discourse/onebox  
[https://github.com/discourse/onebox/commit/3ffcdff566bf0f1ed8addfb50fa4c5801098d11e](https://github.com/discourse/onebox/commit/3ffcdff566bf0f1ed8addfb50fa4c5801098d11e)

I think I will make a google play movie & book store engines as well.. just a learning exercise

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年一月9日 06:28 UTC](https://meta.discourse.org/t/play-store-onebox-issue/23146/12 "2015-01-09T06:28:13Z")

</div>


