Bug 202226 - Yandex Fotki support export
Summary: Yandex Fotki support export
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-YandexFotki (show other bugs)
Version: 5.2.0
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 18:44 UTC by Artyom Aleksyuk
Modified: 2018-01-30 21:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artyom Aleksyuk 2009-08-01 18:44:53 UTC
Version:            (using KDE 4.2.98)
OS:                Linux
Installed from:    SuSE RPMs

Yandex.Fotki is a popular image hosting site, but it is not possible to use it
in Kipi's export plugin.
Yes, it is possible to use it's API, but there are no any English
documentation. Fortunately, there is a small python program which uses this
API. You can find it here:
http://github.com/svetlyak40wt/yafotkiuploader/tree/master . So you can simply
make a frontend to it.
I can tell you more information if you are interested in.
Comment 1 Artyom Aleksyuk 2009-08-02 09:12:18 UTC
How it's work:

> ./yafotki -u myusername -p mypasword --albums
/home/aaa/svn/yafotki/YaFotkiLib/MultipartPostHandler.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
authorization as h31mail with password *******...
1) "Myalbum"

By this command we see a list of albums and their numbers.

> ./yafotki -u myusername -p mypasword --album 1 /home/aaa/Chake.gif
/home/aaa/svn/yafotki/YaFotkiLib/MultipartPostHandler.py:45: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
authorization as myusername with password *******...
Uploading /home/aaa/Chake.gif into album "Myalbum"

By this command we upload this file (you can upload multiple files) to the first album.
It is possible to use this program as a library.
You can directly use an API, there is some documentation about it - http://translate.google.ru/translate?js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fapi.yandex.ru%2Ffotki%2Fdoc%2Ffotki-api-doc.pdf&sl=ru&tl=en&history_state0=
Comment 3 Alexander Potashev 2010-10-30 15:50:03 UTC
Shotwell now supports Yandex.Fotki, developers could just port it to kipi-plugins.

http://tigro.info/wp/?p=1955 (about Yandex.Fotki support in Shotwell in Russian)
Comment 4 Roman Tsisyk 2011-01-25 11:44:47 UTC
I've recently implemented #202226 functionality.

Currently supported:
  - authentication (with provided by Yandex public domain library)
  - photo exporting, album selection
  - metadata updating: title, description; access settings (public, friends only, private); flags (adult, hide original, no comment)
  - tags, via undocumented reverse-engineered API
  - already uploaded photo handling: update metadata, add as new and skip photo modes (image data replace is not supported by API)

I also implemented support for image import and creation of new albums in the backend library, but GUI haven't got support yet. See TODO list for more details. 

Tested with KIPI 1.5. Source code is not yet cleaned and stylized for KIPI integration, I'm planned to finish the work next month.

Source code:
http://gitorious.org/kipiplugin-yandexfotki/

Description on my home page with screenshots (in English):
http://roman.tsisyk.com/projects/kipi-yandex 

I you have some questions, don't hesitate to contact me.

----
WBR, 
 Tsisyk Roman
Comment 5 caulier.gilles 2011-01-25 11:50:27 UTC
roman,

Great to see a new plugin implementation starting there.

I propose to include this source code in next kipi-plugins 2.0.0.

We will migrate next week digiKam & kipi-plugins source code from KDE subversion to KDE git repository.

What do you think to move your code to KDE git repository when time will be fine ?

Do you have a KDE git repository account, to import and maintain your code at this place in the future ?

Best

Gilles Caulier
Comment 6 Roman Tsisyk 2011-01-25 12:09:06 UTC
Dear, Gilles!

Moving to KDE git is a great idea.
I can import code to new repo and maintain it, but I haven't got an account yet. Where can I create it?

Also, I can try to finish implementing my TODO list before release of 2.0.0, if you told me release date.

---
WBR, 
 Tsisyk Roman
Comment 7 caulier.gilles 2011-01-25 12:55:36 UTC
Roman,

Well, the svn/git migration will be done next week by Marcel if all is fine... I CC him for info.

To ask account to Git repository, take a look here :

http://techbase.kde.org/Development/Tutorials/Git/KdeOnGit

Gilles Caulier
Comment 8 Marcel Wiesweg 2011-01-25 20:57:44 UTC
There is no special git account, you need to apply for a KDE developer account as for SVN if you want to develop on KDE code.

With that, you can if you want import your repository to KIPI, maybe using the subtree merge strategy, not sure if that is the right tool. Or just copy the code if there is not too much history to preserve.
Comment 9 caulier.gilles 2011-02-16 14:43:30 UTC
Roman,

Kipi-plugins have been migrated to GIT :

https://projects.kde.org/projects/extragear/graphics/kipi-plugins

You can import your code in this repository.

Let's me hear if you need help...

Gilles Caulier
Comment 10 Roman Tsisyk 2011-02-21 05:30:23 UTC
New album feature added, some GUI and backend issues solved, code style updated according to the digiKam HACKING guide.

Imported to the development/2.0-yandexfotki branch
(https://projects.kde.org/projects/extragear/graphics/kipi-plugins/repository/show?rev=development%2F2.0-yandexfotki).

It can be merged to the development/2.0 branch at any time, as you decide.
Tested out with latest kipi-plugins + Gwenview source.

--
Tsisyk Roman
Comment 11 caulier.gilles 2011-02-21 06:47:08 UTC
Roman,

yes, please merge with 2.0 branch of kipi-plugins now, to be published with next beta3 planed in one week...

Gilles Caulier
Comment 12 Roman Tsisyk 2011-02-21 07:06:48 UTC
Merged.

I'm not sure that I can correctly remove branch 2.0-yandexfotki at the remote repo, will try later after reading Git manual.
Comment 13 caulier.gilles 2011-02-21 08:41:35 UTC
Thanks i close this file now.

Gilles Caulier
Comment 14 caulier.gilles 2011-02-21 08:50:46 UTC
I created a new YandexFotki component in KDE bugzilla

Gilles Caulier
Comment 15 Roman Tsisyk 2011-02-21 09:00:44 UTC
Thanks!