Thorn (thornik) wrote in lj_dev,
Thorn
thornik
lj_dev

LJ Picture Uploader

Hello, guys!
Lately I made a program to upload pictures on LJ server (Page on SoftPedia). It's quite simple at look and same simple in use, so hope people will enjoy it.
If you have any ideas how to improve it, welcome!

Program is written on C#/.NET 4.5, uses PhotoBilder API.
Tags: *announce, client: .net, client: c#, client: image upload, client: windows
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 14 comments
May be you have any ideas how to get info about album witch picture belongs to?
Is is functionality offer or just a question? :)
I plan to make combobox to select album where you want to upload photos.
If you wanna have info about existing photos, then fully functional manager is needed, which will call LJ's API.
It's a question because I coudn't find the way to divide pictures to albums
Только догадка: через этот очевидный вызов возможно приедет что-то типа

[Meta name='GalName']Мои фотки с сауны[/Meta]

(там же передаются метаданные - среди них наверняка будет инфа о галерее)
Хм. Этот метод я не заметил. Посмотрю, но что-то сомневаюсь. Спасибо.
Assuming that Google Translate didn't make a mess of the above exchange, if that method works, can you edit or comment on your own lj_dev entry to explain? It will make it easier for others with the same question to find it in the future.
No. This method returns unusable info.
This is part of my response:



2013-08-06 20:16:04




test album
255

And there are no pictures with id 20 or 21 and how can I link this info with images I don't understand
Your response looks like you called wrong method. Seems you called 'GetGalsTree', while I pointed you at 'GetPics'.
Yes. GetPics doesn't return any info about album.
Yep, I tested myself, there is nothing corresponding between pics and galleries. WTF??
You have only one way - to SUP. :)
Как вариант костылей: когда загружаешь пикчу на сервер, номер галереи вставь в заголовок картинки, типа
"{394}Я и Пушкин", тогда тебе в списке картинок придёт

<Meta name="title">{394}Я и Пушкин</Meta>

и можешь смело сортировать.

lord_baskervil

September 23 2013, 08:58:52 UTC 1 year ago Edited:  September 23 2013, 08:59:07 UTC

Did you test uploading private photos? Or can you create gallery with private access?
Never ever. There is no "private" sh*t when you drop your "secrets" into the Internet :)
Yep, confirmed by LJ support:

"Looking more closely, I see the problem is that GetPics returns no album
ID# or information sufficient to identify the album. I have opened a
ticket with LiveJournal developers requesting this be added to the GetPics
function."

So wait until they fix.