# Picasaweb Plex Plugin

**URL:** <https://forums.plex.tv/t/picasaweb-plex-plugin/1361>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [March 30, 2009, 10:15pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361 "2009-03-30T22:15:47Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 4, 2009, 6:15pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/21 "2009-05-04T18:15:11Z")

</div>

**Good things are happening to the Picasa Web Albums plugin…**  
  
  
  
**Picasaweb.0.2**  
  
  
  
With it being a bank holiday the pace of life has slowed to give me an opportunity to make the Picasaweb plugin more usable.  
  
  
  
The most important technical change is we are now on Plugin Framework v1 which means we have far more control over functionality. Some of the benefits for the plugin are as follows:  
  
  
  
**The plugin is now locale-aware**. As Picasa is used globally its only fair that non-english speaking people can also benefit from the plugin. Every single string is now externalised into the plugin bundle’s Strings directory. en.json is obviously provided for english speaking users but it now obviously opens up the possibility for other developers and friends of Plex to contribute json files for other locales.  
  
   
  
**The plugin now has full user perferences support.** The new v1 plugin API has full support for preferences including presentation of a dialog for the user to edit them. This makes the plugin that bit closer for the mainstream as you no longer have to edit **init**.py to configure which Picasa albums you would like to view. We have a slight issue with storing a non-encryped preference (i.e. the users google password) but its not mandatory that you supply a password as I’ll explain later on.  
  
   
  
**Lots of new features.** I now make use of many of the other feed sources that the gdata.photo.service python API provides. Areas of ‘hopefully’ provided functionality are as follows:  
  
  
  
[list]  
  
[_] **Featured Photos** - pages through the photos currently featured on the Picasa community site._  
  
_[_] **Recent Uploads** - pages through photographs that have recently been uploaded by Picasa community users.  
  
[_] **Popular Tags** - lists the most popular tags within the Picasa community. When a tag is selected you can then page through all the community photos with the selected tag._  
  
_[_] **My Albums** - shows the registered user a list of their Albums. When an album is selected you can see all the photos it contains  
  
[_] **My Tags** - lists the regisered user’s list of tags placed on their photos. When a tag is selected you can then page through all the users photos with that tag_  
  
_[_] **My Recent Uploads** - pages through the registered user’s photographs in most recent first order.  
  
[_] **Search My Photos** - search through the registered user’s photographs by tag and keyword._  
  
_[_]\*\*Search Picasa \*\*- search through all community photographs by tag and keyword  
  
[/list]There are a few other little bits and bobs I’d like to get working but I think that is more than enough for now as it makes 0.2 massively more functionally rich that 0.1.  
  
  
  
Check out a few screenshots.

[![](http://lh6.ggpht.com/_xmYCauRuEEY/Sf8vBFXy_jI/AAAAAAAAF18/tDz_63a8RZE/picture-view.jpg) ](http://lh6.ggpht.com/_xmYCauRuEEY/Sf8vBFXy_jI/AAAAAAAAF18/tDz_63a8RZE/picture-view.jpg)

  
  

[![](http://lh3.ggpht.com/_xmYCauRuEEY/Sf8uvuJF05I/AAAAAAAAF1s/EkMZl4eMuk4/featured-photos.jpg) ](http://lh3.ggpht.com/_xmYCauRuEEY/Sf8uvuJF05I/AAAAAAAAF1s/EkMZl4eMuk4/featured-photos.jpg)

  
  

[![](http://lh6.ggpht.com/_xmYCauRuEEY/Sf8vHTL9-0I/AAAAAAAAF2I/JUho-qzSo24/preferences.jpg) ](http://lh6.ggpht.com/_xmYCauRuEEY/Sf8vHTL9-0I/AAAAAAAAF2I/JUho-qzSo24/preferences.jpg)

  
  

[![](http://lh5.ggpht.com/_xmYCauRuEEY/Sf8vGOT5_7I/AAAAAAAAF2E/1E5UA3jRSow/preferences-dialog.jpg) ](http://lh5.ggpht.com/_xmYCauRuEEY/Sf8vGOT5_7I/AAAAAAAAF2E/1E5UA3jRSow/preferences-dialog.jpg)

  
  
As always if you can't see the images peep in my gallery [here](http://picasaweb.google.com/theoriginaliangratton/PlexPicasawebPlugin#).  
  
The GUI side of the plugin is now almost there. It just needs all the gdata service wiring back into it. Will make it available via the Wiki once it is ready for some testing.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [May 4, 2009, 6:30pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/22 "2009-05-04T18:30:41Z")

</div>

This looks amazing!

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 6, 2009, 10:25pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/23 "2009-05-06T22:25:54Z")

</div>

Cheers folks :lol:   
  
  
  
Bit more done.  
  
  
  
**Authentication now works** - and the plugin knows contextually if it should authenticate or not. This allows the plugin to view non-public items when working within the confines of your own gallery (i.e. albums, pictures and searches). You can obviously override the default behavior by unckecking the ‘Show my private Albums’ option on the preferences dialog. If this option isn’t set the plugin won’t bother attempting to authenticate against google - we dont want to burn Kw’s of electricity on their server farm - unless we have to LOL.  
  
  
  
**You can now browse your tags** - which will soon lead on to finding all your photos that have the selected tag and bring back pages of results on Photo mode. There will be items to move forwards and backwards a page too.  
  
  
  
**You can now browse your albums** - Gives back a list of each gallery along with a count of the photos it contains. Your private albums visibility preferences are taken into account here. Each album gives the album summary, location, the albums visibility and (if your are authenticated) the amount of space the albums content is taking up in your picasa storage space.

[![](http://lh3.ggpht.com/_xmYCauRuEEY/SgIFfJ8AAOI/AAAAAAAAF4w/2rmCoY_YCYc/myalbums-view.jpg) ](http://lh3.ggpht.com/_xmYCauRuEEY/SgIFfJ8AAOI/AAAAAAAAF4w/2rmCoY_YCYc/myalbums-view.jpg)

  
  
there are a few new screenshots [here](http://picasaweb.google.com/theoriginaliangratton/PlexPicasawebPlugin?feat=directlink)  
  
When I am less sleepy I'll get the Photo view working for tags and albums. The view logic is fundamental to making all the community feed types work so it should progress quickly after this. I need to figure out how to add items into the context menu (press 'c' it comes up) so that I can nagivate from a photograph to the show the tags and albums associated with it. This will give pretty much endless depth to browsing of picasa :blink:

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 7, 2009, 10:53pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/24 "2009-05-07T22:53:37Z")

</div>

Yay - photo view works again. Improved summary data now includes filename, summary text, dimensions and date taken. The rest of the exif information can be obtained by pressing ‘i’ in plex.

[![](http://lh5.ggpht.com/_xmYCauRuEEY/SgNlg5KSzFI/AAAAAAAAF6M/BOVOS3Il9Z8/photo-view.jpg) ](http://lh5.ggpht.com/_xmYCauRuEEY/SgNlg5KSzFI/AAAAAAAAF6M/BOVOS3Il9Z8/photo-view.jpg)

  
  

[![](http://lh6.ggpht.com/_xmYCauRuEEY/SgNljPDarJI/AAAAAAAAF6Q/0nBV0Obar5c/photo-view-exif.jpg) ](http://lh6.ggpht.com/_xmYCauRuEEY/SgNljPDarJI/AAAAAAAAF6Q/0nBV0Obar5c/photo-view-exif.jpg)

  
  
I've also just figured out how to get a proper gdata feed of a picasa users linked galleries (gdata refers to them as contacts) so hopefully this will allow me to do the 'My linked Albums' view that is currently missing from what I have now.  
  
Hopefully get a longer stab at this over the weekend. All other feed types will be easy after these base types are handled correctly.

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 12, 2009, 2:10pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/25 "2009-05-12T14:10:26Z")

</div>

The latest Picasaweb.0.2.zip bundle is available to plugin devs via campfire. Hopefully not long now before this is ready for the masses. Unfortunatley I can’t place the new .zip file onto the Wiki as it will only allow files of up to 2.5mb in size. As this plugin makes use of very pretty custom icons for all the different contextual items you can view the .zip file is unfortunately 7.5mb in size.  
  
  
  
Maybe Elan or Isaac can somehow get this on if I can’t ?  
  
  
  
Hopefully it wont be long before it can be obtained via the App store. I’m very very happy with how this has all turned out.  
  
  
  
It seems that pictured-based plugins are fun. Maybe I’ll try and do something with flickr next for you guys.

---

<div class="post-metadata">

**Author:** ![iordonez](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/iordonez/32/4_2.png) [@iordonez](https://forums.plex.tv/u/iordonez)\
**Post date:** [May 13, 2009, 5:55am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/26 "2009-05-13T05:55:46Z")

</div>

I can probably find a place to host it… Shoot me an E-mail to remind me 🙂

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://forums.plex.tv/u/Jason)\
**Post date:** [May 13, 2009, 6:42am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/27 "2009-05-13T06:42:39Z")

</div>

I hope I’m not the only one who finds it humorous that the screenshots for the picasa plugin for Plex are hosted on picasa. I had a bit of a chuckle out of that.  
  
  
  
Good work on this. I hope it makes it to the app store. 🙂

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 13, 2009, 6:45am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/28 "2009-05-13T06:45:47Z")

</div>

Cheers Folks,  
  
  
  
Isaasc has made the 0.2 release downloadable from the Wiki.  
  
Anyone interested in giving it a try please go get it [here](http://wiki.plexapp.com/index.php/Picasaweb_Plugin).  
  
  
  
As always your feedback is appreciated.

---

<div class="post-metadata">

**Author:** ![MatthijsH](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@MatthijsH](https://forums.plex.tv/u/MatthijsH)\
**Post date:** [May 13, 2009, 9:21am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/29 "2009-05-13T09:21:25Z")

</div>

I’ve made some fast translation to Dutch, hope you can use it. Good luck with your plug-in!

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [May 17, 2009, 8:37am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/30 "2009-05-17T08:37:51Z")

</div>

> [@](#):
>
> I’ve made some fast translation to Dutch, hope you can use it. Good luck with your plug-in!

  
  
Thanks very much :lol:   
I've integrated it into the plugins source code and it will now be included in any new builds I make.  
  
Also looks like google are introducing some new feeds/functionality into picasa too. There is now a Fans of your photos section that appears on the web site. Doesn't look like the gdata api supports it yet but I'm sure its only a matter of time.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [May 17, 2009, 8:45am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/31 "2009-05-17T08:45:29Z")

</div>

Very cool, this will definitely be in the next batch released to the store.

---

<div class="post-metadata">

**Author:** ![threluja](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@threluja](https://forums.plex.tv/u/threluja)\
**Post date:** [June 7, 2009, 9:22pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/32 "2009-06-07T21:22:26Z")

</div>

This is an absolutely fantastic plugin, my congratulations go to the author, I am liking it very very much and can’t wait until it auto updates in the store.

---

<div class="post-metadata">

**Author:** ![oncleben31](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@oncleben31](https://forums.plex.tv/u/oncleben31)\
**Post date:** [June 17, 2009, 9:37am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/33 "2009-06-17T09:37:16Z")

</div>

Here is the French translation for your Plugin.  
  
  
  
**EDIT : THE FILE ISN’T CORRECTLY ENCODED. SEE NEXT POST**

---

<div class="post-metadata">

**Author:** ![oncleben31](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@oncleben31](https://forums.plex.tv/u/oncleben31)\
**Post date:** [June 20, 2009, 9:09pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/34 "2009-06-20T21:09:21Z")

</div>

> [@](#):
>
> Here is the French translation for your Plugin.

  
My files was encoded incorrecly. Now it's OK. :unsure:   
  
Moreover :  
 1 - Is it possible to localize the name of the plugin ? For exemple in French : Picassa Web Albums -\> Picassa Albums Web  
 2 - Is it possible to localize the preferences ?  
 3 - Seems to have error when there are special characters in Album name !

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [June 21, 2009, 10:23am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/35 "2009-06-21T10:23:54Z")

</div>

> [@](#):
>
> My files was encoded incorrecly. Now it’s OK. :unsure:   
>   
>   
>   
> Moreover :  
>   
> 1 - Is it possible to localize the name of the plugin ? For exemple in French : Picassa Web Albums → Picassa Albums Web  
>   
> 2 - Is it possible to localize the preferences ?  
>   
> 3 - Seems to have error when there are special characters in Album name !

  
  
  
Thanks for taking the time to build up the french locale file.  
  
They are very good points.  
  
1. Yes this could be done. I have a constant PLUGIN\_TITLE which I can just get from the locale file with L("PLUGIN\_TITLE"). I'll do this in subsequent builds.  
  
2. Preference names are actually picked up from down inside of ~/Library/Application Support/Plex Media Server/Plug-ins/Picasaweb.bundle/Contents/DefaultPrefs.json. Each pref is defined as:  
  

```auto

	 {<br />
			 "id" : "<pref-key-name>",<br />
			 "type" :	"<pref-data-type>",<br />
			 "label" : "<human-readable-pref-name>",<br />
		 }

```

  
  
so - the 'label' part of a preference is what is used as the caption on the Preferences Dialog. I've just talked this through with some other plugin devs and if I do something like:  
  
  

```auto

 {<br />
		 "id" : "username",<br />
		 "type" :	"text",<br />
		 "label" : "PREF_LABEL_USERNAME",<br />
 }

```

  
  
it will do a L("PREF\_LABEL\_USERNAME") behind the scenes to resolve the local-specific string. Nice. I'll work this into future builds.  
  
3. You are correct. My Flickr plugin suffers in a similar way. I have tried all the various techniques to get around this in Flickr and I've got a hunch about what needs to be done to fix this.   
  
I've been away for the last week so give me a few days to recover and we'll crack these general encoding issues once and for all (fingers crossed).

---

<div class="post-metadata">

**Author:** ![oncleben31](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@oncleben31](https://forums.plex.tv/u/oncleben31)\
**Post date:** [June 21, 2009, 10:40am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/36 "2009-06-21T10:40:20Z")

</div>

Hi Thanks to take my remarks into account.  
  
  
  
For point 2 - Localizable Pref - you can read [this post of Elan](http://forums.plexapp.com/index.php?showtopic=7075&view=findpost&p=43866) where he says

> [@](#):
>
> With regard to localized preferences, the label you specify in DefaultPrefs.json gets passed to the Locale module before being returned to Plex - if it’s a vaild key, the localized string will be returned from the current strings file (e.g. Contents/Strings/fr.json). If not, the provided text will be used.

  
  
It seem's to be not so difficult :rolleyes:

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [June 21, 2009, 11:16am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/37 "2009-06-21T11:16:04Z")

</div>

> [@](#):
>
> Hi Thanks to take my remarks into account.  
>   
>   
>   
> For point 2 - Localizable Pref - you can read [this post of Elan](http://forums.plexapp.com/index.php?showtopic=7075&view=findpost&p=43866) where he says   
>   
>   
>   
>   
>   
> It seem’s to be not so difficult :rolleyes:

  
  
Yep - I corrected my post above as you were typing this one.

---

<div class="post-metadata">

**Author:** ![oncleben31](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@oncleben31](https://forums.plex.tv/u/oncleben31)\
**Post date:** [June 21, 2009, 11:38am UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/38 "2009-06-21T11:38:19Z")

</div>

Be carefull I can’t use french string file in Picassa and my plugin since today.  
  
I suspect an auto update of the Framework.bundle.  
  
I’ve created[this post for this problem](http://forums.plexapp.com/index.php?showtopic=7348)

---

<div class="post-metadata">

**Author:** ![Ian.G](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ian.g/32/423_2.png) [@Ian.G](https://forums.plex.tv/u/Ian.G)\
**Post date:** [June 21, 2009, 3:45pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/39 "2009-06-21T15:45:13Z")

</div>

I’ve just made some interesting headway with general character encoding issues we seem to have in plugins. If you are interested please click out the [Flickr Plugin Thread](http://forums.plexapp.com/index.php?showtopic=6724&view=findpost&p=44755)

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://forums.plex.tv/u/Jason)\
**Post date:** [June 21, 2009, 7:00pm UTC](https://forums.plex.tv/t/picasaweb-plex-plugin/1361/40 "2009-06-21T19:00:15Z")

</div>

> [@](#):
>
> I’ve just made some interesting headway with general character encoding issues we seem to have in plugins. If you are interested please click out the [Flickr Plugin Thread](http://forums.plexapp.com/index.php?showtopic=6724&view=findpost&p=44755)

  
  
This may seem like a silly question, but what is the best way to update the Picasa plugin?

[Previous page](https://forums.plex.tv/t/picasaweb-plex-plugin/1361.md?page=1)

[Next page](https://forums.plex.tv/t/picasaweb-plex-plugin/1361.md?page=3)
