zanshin / HostedBy

Java-based tool to parse bookmarks and produce an ordered list of hosting providers.
1 stars 0 forks source link

Chrome bookmark format fails #1

Closed zanshin closed 13 years ago

zanshin commented 13 years ago

Chrome's Netscape bookmark format is enough different from Safari's Netscape bookmark format to break the rather crude format parser in HostedBy.

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Didea.launcher.port=7536 -Didea.launcher.bin.path=/Users/mark/Applications/IntelliJ IDEA 10 CE.app/bin -Dfile.encoding=UTF-8 -classpath /System/Library/Java/Support/CoreDeploy.bundle/Contents/Resources/Java/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-rt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/alt-string.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/apple_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/dnsns.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/localedata.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunjce_provider.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext/sunpkcs11.jar:/Users/mark/Projects/java/HostedBy/out/production/HostedBy:/Users/mark/Applications/IntelliJ IDEA 10 CE.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain net.zanshin.hostedby.HostedBy The domains: Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Whoops Caught URISyntaxException: Illegal character in path at index 30: http://www.456bereastreet.com/" ADD_DATE="1256658900" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA+UlEQVQ4jc2SsU6EQBiEv/9itsEGWxoSLGh9EXwb7hmk81GO3ve4GC+5hvZojuYK5wr9zS6CFjZOQlg2M8PMvwv/Eq3lai3Xb3sAmzWToipxQWu5iqpc5N2sGQyHI3tdAD7eh+Miz+KIvu40WkP2LW7PZHNeUsFjunin89cT78d1LDZoLZfH3unMdnPHXhdqCzy9n3i0WwBqC3QaE22ChkyS1JDp+f5B8fecmwzR+3mK2gIvb6/UFhLzOEEyxKIqk+l7dyCJ77xOoyUJhs+j6pmsIZOLHD2T1QQN0ZEuDiKu4mZeYz68H2+iizz2ElYNvKP/dVi5iX/GFbi2hYOBFKCnAAAAAElFTkSuQmCC Caught URISyntaxException: Illegal character in path at index 31: http://a.wholelottanothing.org/" ADD_DATE="1256658900" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABv0lEQVQ4jZ2QwU5TQRSGvztzyr1tra1eUtrYlioCpmhNXWFsjG5YuTEaly4NJj6CCfQpXLhQFvoCJpAYF8TEGDEsmqYiUUHRtlSvNd4qESnUhaGUBC3wJ7OYM/N9Z84YN+6cGe9WqTH2EWfjVc64ffd6cz/wZkQrtePBQPw0sXAffivQqtXcz7xfnqf0ZaFNoHVr0yUmw0MjDKdGMLu8/+y68qvOi7knzM5PbwkO+g9z7cItwoeOdHy2zwpwMXOZ9LGziBbBMBRXzo/uCm6PHYygRDRRO07U7t3x0u/G6n8lIiKsbaxtKzpulXflIt3BCEcjJzoItPDVrTD58iHVb58ofpghczzL1ewopsfqOIaICAEd4PnrR5geLzcvjdEXPdURBFiszv0VACQj/RiGYr3Z6Ai6KzUmZ++TX3y6JVBKk05kceolJh7kSIaHSIZTHLCCLdBxy7xdzlOpLdAT6mUwlkG0aOL2ICcT55h5M0Xh4zMGYhl+rrrkl6ZptH2wKV78viDpULZVM6rfl5q1HxWm8vewxEfIH97V/JuRx4UJnHqJnmAC0Z49wVoJqtws5uJ2P6bHRCu1p1VZL+T+AKBkfEWi3hTXAAAAAElFTkSuQmCC Caught URISyntaxException: Illegal character in path at index 28: http://www.adampolselli.com/" ADD_DATE="1256658900" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACuUlEQVQ4jW3RS2sTURTA8X8yM5lXZpJJMm2mDWkaralVK9oIvlARBHUhdOFKwc/gwk/h3o0LNyIoiAsXQUSpCy2+aOurim1aqkVrk2bsxDRpmtZFdKrogQv3Ls7vnkcA4PmVOxuf307zO0KqzMDwEV7ffAhAfGuKWLaL94VRAIYunGbx4xxD504GxJHL1/9KBgiZOhv1Nf9tdieoffcQBAEhJKKaOnZfmrln7zbEyuxXAARB8BOiCYvWahMhEARA0VSW50soIZm+4UNIusLHwlO8skvwd5IQCPpHiZnUv//wQTkaxuyIsf/iWYSgwJeJKUoz88S67E3gz1AiOvWlZQA6cmnMlI1uRxm/VmCt1qA69w2AcLoD8X+AaKoAbD9zGCWiU1uoMFV4CoDRnWD68UT7Iyv8L2DYFhHHJuLYzI6MIWkKoizRbDaRVQUhJLFa9pBNHTVibAKhuEFm3wCdg1uoVTxeXr0LQPZE3i9Z67SollwAeo/sJqQpiFYmSWpwG1rcpDw1z9S9ZxhOfHMeVpjF8faarUySRnmZ7WcOY3QnmBl9hdhzcBeliSLF+y8AcPI5fwOyqiDLMnW3iiRJRLNdyIbGzOgrlIjOwpsi4viN++0WRAkA1TKoTM+373HDx5x8DiMZY/L2I2pulUbGobFc+3eIsqmzsuT9AiKsr7XoGz4EwErF49uHOdIHdlL9VMLKJP8GZFUB8Et2hnLIhsbsyBgAa84KALodxSu79J86uAm0NtbROi2atTrh7gS9x/ciGxqTt0dwPy+SO33Aby22LYXxI8HXt0WCVibZBlotjLSNmoiQHNxC8dEY1ZKLu1Bu43ETt1QheyLPerPF+K0HxHscgscunQ84Q/1kj+4huSOLt1BmsvCEZqNB3fVYXWkg6jIBSSS1N0fnQC+fXkzS0d9DV74/8BN2e/KuH6WOOAAAAABJRU5ErkJggg==

zanshin commented 13 years ago

Resolved. Changed endIndex process to look for second occurrence of double-quote, which is the one immediately after the URL is given in the bookmark. This avoids the additional information included in the Chrome style bookmarks file.