diff --git a/content/bookmarks/facebook/2006-11/ebje6gae7zcxzzehujcxmda5va/index.md b/content/bookmarks/facebook/2006-11/ebje6gae7zcxzzehujcxmda5va/index.md index 206b670e..c0032a46 100644 --- a/content/bookmarks/facebook/2006-11/ebje6gae7zcxzzehujcxmda5va/index.md +++ b/content/bookmarks/facebook/2006-11/ebje6gae7zcxzzehujcxmda5va/index.md @@ -8,7 +8,7 @@ references: type: video name: LSUwake November Riding author: lborowaterski - date: 2024-04-04T15:14:10.630056+01:00 + date: 2006-11-20T04:28:29-08:00 --- My Brother's first attempt at video editing (his new shiny camera is quite shiny!) Any thoughts people? diff --git a/content/bookmarks/facebook/2006-11/rmgvxcjrwojjxe3347dhedetfq/index.md b/content/bookmarks/facebook/2006-11/rmgvxcjrwojjxe3347dhedetfq/index.md index f50c744f..b92d53a7 100644 --- a/content/bookmarks/facebook/2006-11/rmgvxcjrwojjxe3347dhedetfq/index.md +++ b/content/bookmarks/facebook/2006-11/rmgvxcjrwojjxe3347dhedetfq/index.md @@ -8,7 +8,7 @@ references: type: video name: Nottingham Capoeira Demo 2 author: JP Hastings-Spital - date: 2024-04-04T15:14:11.469829+01:00 + date: 2006-11-21T16:36:07-08:00 --- And some more Capoeira from this evening... diff --git a/content/bookmarks/facebook/2006-11/ul76tkpfdtrtzcqvntrpnv4hlq/index.md b/content/bookmarks/facebook/2006-11/ul76tkpfdtrtzcqvntrpnv4hlq/index.md index 31fce1b5..99cc24b6 100644 --- a/content/bookmarks/facebook/2006-11/ul76tkpfdtrtzcqvntrpnv4hlq/index.md +++ b/content/bookmarks/facebook/2006-11/ul76tkpfdtrtzcqvntrpnv4hlq/index.md @@ -8,7 +8,7 @@ references: type: video name: Nottingham Capoeira Demo 1 author: JP Hastings-Spital - date: 2024-04-04T15:14:11.115081+01:00 + date: 2006-11-21T16:35:05-08:00 --- For any of you that wanted to see what Capoeira looks like! Its a poorly shot video (my mobile doesn't really do video that well...) but you get the gist! diff --git a/content/bookmarks/facebook/2006-12/4tvsayb2dwc5uz5gkphy45d3v4/index.md b/content/bookmarks/facebook/2006-12/4tvsayb2dwc5uz5gkphy45d3v4/index.md index 0f01861f..ac60cf97 100644 --- a/content/bookmarks/facebook/2006-12/4tvsayb2dwc5uz5gkphy45d3v4/index.md +++ b/content/bookmarks/facebook/2006-12/4tvsayb2dwc5uz5gkphy45d3v4/index.md @@ -7,6 +7,7 @@ references: - url: https://www.worldbeardchampionships.com/ type: website name: The World Beard and Moustache Championships® - date: 2024-04-04T15:14:16.838122+01:00 + author: The World Beard and Moustache Championships® + date: 2024-04-05T12:05:22.876585+01:00 --- Check it out. The world Beard and Moustache championships are being held in Brighton this year (well, 2007) - anyone up for it say 'Aye!' diff --git a/content/bookmarks/facebook/2007-02/r6vaycwy744bz4vighjz24jw3e/index.md b/content/bookmarks/facebook/2007-02/r6vaycwy744bz4vighjz24jw3e/index.md index 7c66ae59..58c9e757 100644 --- a/content/bookmarks/facebook/2007-02/r6vaycwy744bz4vighjz24jw3e/index.md +++ b/content/bookmarks/facebook/2007-02/r6vaycwy744bz4vighjz24jw3e/index.md @@ -7,6 +7,6 @@ references: - url: https://www.dailymotion.com/cluster/creation/video/x16hdk_flute-beatbox type: video name: Flute beatbox - Vidéo Dailymotion - date: 2024-04-04T15:14:17.184252+01:00 + date: 2007-02-11T00:10:18+01:00 --- Do you know who Inspector Gadget is? Have you heard of Beverly Hills Cop? WATCH THIS NOW! diff --git a/content/bookmarks/facebook/2007-03/qk6dqlkwelrg6slc7rxozqs7su/index.md b/content/bookmarks/facebook/2007-03/qk6dqlkwelrg6slc7rxozqs7su/index.md new file mode 100644 index 00000000..d68408ea --- /dev/null +++ b/content/bookmarks/facebook/2007-03/qk6dqlkwelrg6slc7rxozqs7su/index.md @@ -0,0 +1,14 @@ +--- +date: "2007-03-15T12:32:08Z" +tags: +- from-facebook +bookmarkOf: https://technology.guardian.co.uk/weekly/story/0,,2033506,00.html#article_continue +references: +- url: https://technology.guardian.co.uk/weekly/story/0,,2033506,00.html#article_continue + type: article + name: 'Victor Keegan: Lost? Follow me in, to the social future' + date: 2007-03-15T23:43:49Z +--- +Hugo Shelly, you are the man. + +Please tell everyone about the awesome game of Lost and Hugo's newfound fame! {{< linkrot "http://lost.eu" >}} diff --git a/content/bookmarks/facebook/2007-03/z4aqx7hemjklgdspdluxv7l6hy/index.md b/content/bookmarks/facebook/2007-03/z4aqx7hemjklgdspdluxv7l6hy/index.md new file mode 100644 index 00000000..c57dea4f --- /dev/null +++ b/content/bookmarks/facebook/2007-03/z4aqx7hemjklgdspdluxv7l6hy/index.md @@ -0,0 +1,14 @@ +--- +date: "2007-03-12T15:15:28Z" +tags: +- from-facebook +bookmarkOf: https://www.jonathancoulton.com/store/#:~:text=ALBUM%20IN%20CART-,Songs%20from%20Ze%20Frank%27s%20%22The%20Show%22,-Songs%20from%20Ze +references: + - url: https://www.jonathancoulton.com/store/#:~:text=ALBUM%20IN%20CART-,Songs%20from%20Ze%20Frank%27s%20%22The%20Show%22,-Songs%20from%20Ze + name: Songs from Ze Frank's "The Show" + type: album + date: 2007-03-08 +--- +The original show and details about The Show (with Ze Frank) can be [found here](https://www.youtube.com/watch?v=xu3ydB5iEp0&list=PLMs_JcuNozJa7tg80N_kITisZjHHeE3uo&index=238) + +His last two shows are Today and Tomorrow! diff --git a/content/bookmarks/facebook/2007-09/soscoo3iionu5fd2z3h6wex5qe/index.md b/content/bookmarks/facebook/2007-09/soscoo3iionu5fd2z3h6wex5qe/index.md new file mode 100644 index 00000000..0f3465ec --- /dev/null +++ b/content/bookmarks/facebook/2007-09/soscoo3iionu5fd2z3h6wex5qe/index.md @@ -0,0 +1,14 @@ +--- +date: "2007-09-13T22:26:22Z" +tags: +- from-facebook +bookmarkOf: https://qwantz.com/index.php?comic=1070 +references: + - url: https://qwantz.com/index.php?comic=1070 + name: Dinosaur Comics! + date: 2007-09-12 + type: comic +--- +Go to the page, and hold your mouse over the comic after you've read it :P + +Wonder if you could come up with enough of these to give one out every morning in a long term relationship? Or even a marriage? One way to find out... diff --git a/tools/.archiveignore b/tools/.archiveignore index b4d2072e..6095eed9 100644 --- a/tools/.archiveignore +++ b/tools/.archiveignore @@ -1,4 +1,14 @@ rtv2nwevsrb7jskkoi2niza6qq tuoyt24xgoknswodnhizqehx2u lsdjotoggybiqsetlzmwcpptay -b3atqewyj3xseyeu2tmyogss4e \ No newline at end of file +b3atqewyj3xseyeu2tmyogss4e +5vqyrgdepjtc4wap7op264zdam +asobpuhzmrhmqky6razz5myopu +h35nhel7j6ewwiniquytqnge5a +nfc6ggihnat3st6cchdpxl3mi4 +yiwsjzwi4wyse6r72tkhrgxfua +p3xhhyck2a6s7zvbu6jddxxunu +q52a5kehxx6k3my3wtguijbtlq +dibpsddlyh53wou3po54dx4dte +4xrfjvhl5mc7fkvjpb42bfpr5m +ipyvqr7n332u43qac6ygd3qbmu \ No newline at end of file diff --git a/tools/archive/facebook/exportfile.go b/tools/archive/facebook/exportfile.go index 08d077b0..631071ae 100644 --- a/tools/archive/facebook/exportfile.go +++ b/tools/archive/facebook/exportfile.go @@ -75,6 +75,10 @@ func postize(e PostCheckinPhotoOrVideo, matches []string) (shared.Post, shared.M link = "https://" + link[7:] } + if !strings.HasPrefix(link, "https://") { + link = "https://" + link + } + if strings.HasPrefix(link, "https://360.io/") || strings.HasPrefix(link, "https://fb.thisismyjam.com") { return shared.Post{}, nil, false, err } @@ -85,7 +89,10 @@ func postize(e PostCheckinPhotoOrVideo, matches []string) (shared.Post, shared.M if err != nil { fmt.Printf("Couldn't get reference for %s because %v\n", link, err) } - post.FrontMatter.References = append(post.FrontMatter.References, ref) + // Only bother adding if there's at least a name + if ref.Name != "" { + post.FrontMatter.References = append(post.FrontMatter.References, ref) + } if strings.HasSuffix(post.FrontMatter.Title, "shared a link.") { post.FrontMatter.Title = "" diff --git a/tools/shared/references.go b/tools/shared/references.go index 8f2dcdc6..6adaae53 100644 --- a/tools/shared/references.go +++ b/tools/shared/references.go @@ -95,6 +95,10 @@ func getRef(ref *Reference) error { return err } + if date := findAttr(doc, "content", `meta[itemprop="datePublished"]`, `meta[property="article:published_time"]`, `meta[property="video:release_date"]`); date != "" { + ref.Date, _ = time.Parse(time.RFC3339, date) + } + oembedURL := findAttr(doc, "href", `link[rel="alternate"][type="application/json+oembed"]`) if oembedURL != "" { if err := getRefFromOembed(ref, oembedURL); err != nil { @@ -104,7 +108,7 @@ func getRef(ref *Reference) error { } } - ref.Type = findAttr(doc, "content", `meta[property="og:type"]`) + ref.Type = strings.Split(findAttr(doc, "content", `meta[property="og:type"]`), ".")[0] ref.Author = findAttr(doc, "content", `meta[itemprop="name"]`) ref.Name = findAttr(doc, "content", `meta[property="og:title"]`, `meta[name="twitter:title"]`) if ref.Name == "" { diff --git a/tools/shared/types.go b/tools/shared/types.go index e2b91f37..64fd4218 100644 --- a/tools/shared/types.go +++ b/tools/shared/types.go @@ -17,9 +17,9 @@ type FrontMatter struct { type Reference struct { URL string `yaml:"url"` - Type string `yaml:"type"` + Type string `yaml:"type,omitempty"` Name string `yaml:"name"` - Author string `yaml:"author"` + Author string `yaml:"author,omitempty"` Date time.Time `yaml:"date"` }