• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks Smugglr munges tags ... any fix?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Nov-28-2011, 06:32 AM
#1
dmd is offline dmd OP
Beginner grinner
Smugglr munges tags ... any fix?
Crossposting to a more appropriate area...

I've been wanting to migrate from Flickr to Smugmug for several years now, but the lack of a usable migration tool has gotten in the way.

The problem with Smugglr is that it has a bug - it mangles tags because it uses the tag body instead of the raw property. This means that the tag "John Q. Public" on Flickr ends up as "johnqpublic" on SmugMug.

I have tens of thousands of family photos, dating back to the 19th century, each one painstakingly tagged via years of research. I really don't want all that work mangled.

This bug seems like it should be easily fixable... any suggestions?

For example, in http://www.flickr.com/photos/3e/5099085311/ the tag gets transferred as 'danieldrucker' instead of 'Daniel Drucker'.

The trouble with both Smugglr and Migratr is that they're grabbing the data by using flickr.photosets.getPhotos and requesting tags as an extra.

That gives a response like this:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
  <photoset id="72157600005068570" primary="5099085311" owner="35034347215@N01" ownername="3e" page="1" per_page="500" perpage="500" pages="1" total="1">
    <photo id="5099085311" secret="72570530fe" server="1121" farm="2" title="Daniel's photos are private." isprimary="0" tags="me danieldrucker" />
  </photoset>
</rsp>
That uses the 'cooked' form of the tags.

To get the correct form of the tags, one needs to run flickr.photos.getInfo against each individual photo. That method gives a response like this:

Code:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
  <photo id="5099085311" secret="72570530fe" server="1121" farm="2" dateuploaded="1287584582" isfavorite="0" license="0" safety_level="0" rotation="0" originalsecret="129213833e" originalformat="jpg" views="316" media="photo">
    <owner nsid="35034347215@N01" username="3e" realname="Daniel Drucker" location="Philadelphia, US" iconserver="1" iconfarm="1" />
    <title>Daniel's photos are private.</title>
    <description>My photos are visible to Friends and Family only.</description>
    <visibility ispublic="1" isfriend="0" isfamily="0" />
    <dates posted="1287584582" taken="2006-09-30 12:22:23" takengranularity="0" lastupdate="1304711668" />
    <editability cancomment="0" canaddmeta="0" />
    <publiceditability cancomment="1" canaddmeta="0" />
    <usage candownload="1" canblog="0" canprint="0" canshare="1" />
    <comments>0</comments>
    <notes />
    <people haspeople="0" />
    <tags>
      <tag id="5921-5099085311-864628" author="35034347215@N01" raw="Daniel Drucker" machine_tag="0">danieldrucker</tag>
      <tag id="5921-5099085311-731" author="35034347215@N01" raw="me" machine_tag="0">me</tag>
    </tags>
    <urls>
      <url type="photopage">http://www.flickr.com/photos/3e/5099085311/</url>
    </urls>
  </photo>
</rsp>


Note the 'raw' property which contains the correct version of the tag.
Tell The World!  
Tags
flickr , migratr , smugglr
Similar Threads Thread Starter Forum Replies Last Post
CSS <span style=""> tags not working in "about me" galleries Cmau SmugMug Customization 2 Feb-05-2010 12:50 PM
Smugglr and Flickr tags with numbers in them keithhu SmugMug APIs, Hacks & Tricks 0 Nov-02-2009 12:11 PM
Windows Photo Gallery Tags Mark.Michaels SmugMug Support 2 Jul-24-2008 09:49 AM
[Help] Tags not uploading? JoeG SmugMug Support 6 Jun-23-2008 12:49 PM
Showing code in code tags - bug! iamback Dgrin Forum Support 15 Jun-29-2007 08:25 PM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump