{"action":"opened","issue":{"url":"https://api.github.com/repos/leocrawford/picasawebsync/issues/28","labels_url":"https://api.github.com/repos/leocrawford/picasawebsync/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/leocrawford/picasawebsync/issues/28/comments","events_url":"https://api.github.com/repos/leocrawford/picasawebsync/issues/28/events","html_url":"https://github.com/leocrawford/picasawebsync/issues/28","id":89391044,"number":28,"title":"IndexError: tuple index out of range","user":{"login":"mgillespie","id":2857589,"avatar_url":"https://avatars.githubusercontent.com/u/2857589?v=3","gravatar_id":"","url":"https://api.github.com/users/mgillespie","html_url":"https://github.com/mgillespie","followers_url":"https://api.github.com/users/mgillespie/followers","following_url":"https://api.github.com/users/mgillespie/following{/other_user}","gists_url":"https://api.github.com/users/mgillespie/gists{/gist_id}","starred_url":"https://api.github.com/users/mgillespie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgillespie/subscriptions","organizations_url":"https://api.github.com/users/mgillespie/orgs","repos_url":"https://api.github.com/users/mgillespie/repos","events_url":"https://api.github.com/users/mgillespie/events{/privacy}","received_events_url":"https://api.github.com/users/mgillespie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T20:34:15Z","updated_at":"2015-06-18T20:34:15Z","closed_at":null,"body":"Hi, I am trying to decipher the instructions on how to use this uploader.   They don't seem to be very clear, unless you are a hardcore python and regex expert and mind reader:-(  \r\n\r\nAnyway, the error I am seeing is \"IndexError: tuple index out of range\"\r\n\r\nHere is my commandline, followed by directory listing.\r\n\r\nI am trying to keep it as simple as it can be   \r\n\r\nName (Year) as per your example.\r\n\r\nroot@RPI:~/picasawebsync# ./picasawebsync.py -d /mnt/Pictures/ -m upload -c5 -t -s \".wdmc\" -n \"{1} ({0})\"\r\nExcluding \\.wdmc\\Z(?ms) on client and $. on server\r\nTraceback (most recent call last):\r\n  File \"./picasawebsync.py\", line 744, in <module>\r\n    albums = Albums(rootDirs, albumNaming, excludes, args.replace, args.namingextract)\r\n  File \"./picasawebsync.py\", line 143, in __init__\r\n    self.albums = self.scanFileSystem(albumNaming, excludes, replace, namingextract)\r\n  File \"./picasawebsync.py\", line 152, in scanFileSystem\r\n    albumName = convertDirToAlbum(albumNaming, rootDir, dirName, replace, namingextract)\r\n  File \"./picasawebsync.py\", line 537, in convertDirToAlbum\r\n    work = formElements[which - 1].format(*nameElements)\r\nIndexError: tuple index out of range\r\nroot@RPI:~/picasawebsync# ls /mnt/Pictures/\r\n1995  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  flickr_upload.db  Misc\r\n"}}