leocrawford / picasawebsync

Sync local directories with picasaweb
MIT License
59 stars 16 forks source link

more formatting possbilities #1

Closed ka2er closed 11 years ago

ka2er commented 11 years ago

Hi, I'm looking for a picasa sync client for my headless NAS. Yours seems interesting, the only things that stop me is the dir2webalbum conversion. I need a way of keep only part of the dirname or split them into to args (add some logic string manipulation into conversion album name).

ex 20120803-my-album/ => my album (2012)

I plan to implement this and submit you a pull request. But before I start I prefer to ask you if you have a favorite way or idea on this feature implementation ? Or maybe syntax tips about the format string method (Python is not my main programming langage) ?

Thanks for your inputs

leocrawford commented 11 years ago

Hi,

It's really good of you to let me know your plans, it really is much appreciated.

This is my first python app, so I have no conventions I'm fussed about and happy to take general improvements to the code if you find them.

In terms general design it would be nice to use something like regular expression substitutions (passed in as a command line param). For example the following (unchecked) should give you two matches that include the year (first match) and name (second match).

([0-9]{4})[0-9]{4}-(.*)

It's just a matter then of providing a final replacement (dash to space) and all's good.

That said I'm very happy for you to propose any good solution you can, and I'll be very happy to consider it for inclusion.

Leo

On 21 November 2012 21:09, ka2er notifications@github.com wrote:

Hi, I'm looking for a picasa sync client for my headless NAS. Yours seems interesting, the only things that stop me is the dir2webalbum conversion. I need a way of keep only part of the dirname or split them into to args (add some logic string manipulation into conversion album name).

ex 20120803-my-album/ => my album (2012)

I plan to implement this and submit you a pull request. But before I start I prefer to ask you if you have a favorite way or idea on this feature implementation ? Or maybe syntax tips about the format string method (Python is not my main programming langage) ?

Thanks for your inputs

— Reply to this email directly or view it on GitHubhttps://github.com/leocrawford/picasawebsync/issues/1.

jondavidjohn commented 11 years ago

Should probably be closed due to #2

leocrawford commented 11 years ago

Thanks jondavidjohn. Now closed