Skip to content

Commit

Permalink
switch to 1989 tv deluxe on spotify
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakethompson committed Oct 28, 2023
1 parent 87edf34 commit 1ac675f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 30 deletions.
43 changes: 22 additions & 21 deletions data-raw/spotify-data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,28 @@ Red (Taylor's Version),All Too Well (10 Minute Version) [Taylor's Version] [From
1989,I Know Places - Voice Memo,Taylor Swift,NA,0.592,0.128,9,-17.932,0,0.589,0.829,0,0.527,0.15,78.828,4,216333,FALSE,A,minor,A minor
1989,I Wish You Would - Voice Memo,Taylor Swift,NA,0.781,0.357,0,-16.394,1,0.912,0.717,0,0.185,0.645,118.317,4,107133,FALSE,C,major,C major
1989,Blank Space - Voice Memo,Taylor Swift,NA,0.675,0.234,5,-15.064,0,0.721,0.801,0,0.657,0.578,127.296,4,131187,FALSE,F,minor,F minor
1989 (Taylor's Version),Welcome To New York (Taylor's Version),Taylor Swift,NA,0.761,0.607,7,-4.83,1,0.0312,0.00961,2.24e-5,0.367,0.674,116.98,4,212600,FALSE,G,major,G major
1989 (Taylor's Version),Blank Space (Taylor's Version),Taylor Swift,NA,0.737,0.725,0,-5.417,1,0.0641,0.0976,0,0.174,0.755,96.012,4,231833,FALSE,C,major,C major
1989 (Taylor's Version),Style (Taylor's Version),Taylor Swift,NA,0.575,0.824,2,-4.823,1,0.038,4.18e-4,0.0214,0.0901,0.292,94.971,4,231000,FALSE,D,major,D major
1989 (Taylor's Version),Out Of The Woods (Taylor's Version),Taylor Swift,NA,0.547,0.885,0,-5.961,1,0.0418,5.12e-4,9.37e-5,0.39,0.192,91.992,4,235800,FALSE,C,major,C major
1989 (Taylor's Version),All You Had To Do Was Stay (Taylor's Version),Taylor Swift,NA,0.586,0.72,0,-5.556,1,0.035,7.18e-4,0,0.0949,0.481,97.057,4,193289,FALSE,C,major,C major
1989 (Taylor's Version),Shake It Off (Taylor's Version),Taylor Swift,NA,0.632,0.807,7,-5.676,1,0.0738,0.0103,1.27e-5,0.29,0.921,160.055,4,219209,FALSE,G,major,G major
1989 (Taylor's Version),I Wish You Would (Taylor's Version),Taylor Swift,NA,0.669,0.851,0,-6.526,1,0.0432,0.00357,1.04e-5,0.0676,0.541,118.026,4,207650,FALSE,C,major,C major
1989 (Taylor's Version),Bad Blood (Taylor's Version),Taylor Swift,NA,0.619,0.686,7,-6.369,1,0.164,0.0385,0,0.307,0.364,169.943,4,211104,FALSE,G,major,G major
1989 (Taylor's Version),Wildest Dreams (Taylor's Version),Taylor Swift,NA,0.581,0.672,8,-7.415,1,0.0739,0.0411,9.35e-5,0.118,0.514,140.061,4,220433,FALSE,G#,major,G# major
1989 (Taylor's Version),How You Get The Girl (Taylor's Version),Taylor Swift,NA,0.754,0.682,5,-5.789,1,0.0565,0.00209,9.88e-6,0.0941,0.547,120.027,4,247533,FALSE,F,major,F major
1989 (Taylor's Version),This Love (Taylor's Version),Taylor Swift,NA,0.474,0.511,1,-8.766,0,0.0339,0.299,0,0.0673,0.0586,144.022,4,250100,FALSE,C#,minor,C# minor
1989 (Taylor's Version),I Know Places (Taylor's Version),Taylor Swift,NA,0.575,0.803,0,-5.393,1,0.0465,0.087,0,0.0971,0.68,160.039,4,195700,FALSE,C,major,C major
1989 (Taylor's Version),Clean (Taylor's Version),Taylor Swift,NA,0.771,0.386,4,-8.917,1,0.0297,0.276,2.01e-5,0.121,0.239,103.96,4,271000,FALSE,E,major,E major
1989 (Taylor's Version),Wonderland (Taylor's Version),Taylor Swift,NA,0.462,0.708,3,-5.971,1,0.0555,0.00933,1.88e-5,0.198,0.337,183.811,4,245567,FALSE,D#,major,D# major
1989 (Taylor's Version),You Are In Love (Taylor's Version),Taylor Swift,NA,0.537,0.495,9,-9.416,1,0.0573,0.609,2.49e-6,0.112,0.492,84.948,4,267389,FALSE,A,major,A major
1989 (Taylor's Version),New Romantics (Taylor's Version),Taylor Swift,NA,0.651,0.855,5,-5.959,1,0.0538,0.0068,9.81e-6,0.0759,0.698,121.98,4,230178,FALSE,F,major,F major
1989 (Taylor's Version),"""Slut!"" (Taylor's Version) [From The Vault]",Taylor Swift,NA,0.629,0.413,7,-13.178,1,0.055,0.345,7.62e-5,0.0603,0.306,77.983,4,180381,FALSE,G,major,G major
1989 (Taylor's Version),Say Don't Go (Taylor's Version) [From The Vault],Taylor Swift,NA,0.626,0.547,4,-8.285,1,0.0342,0.0656,1.67e-5,0.149,0.192,109.946,4,279833,FALSE,E,major,E major
1989 (Taylor's Version),Now That We Don't Talk (Taylor's Version) [From The Vault],Taylor Swift,NA,0.793,0.512,0,-9.319,1,0.0338,0.186,3.81e-5,0.0889,0.0662,109.994,4,146437,FALSE,C,major,C major
1989 (Taylor's Version),Suburban Legends (Taylor's Version) [From The Vault],Taylor Swift,NA,0.699,0.621,0,-8.739,1,0.0369,0.198,0,0.104,0.344,118.048,4,171819,FALSE,C,major,C major
1989 (Taylor's Version),Is It Over Now? (Taylor's Version) [From The Vault],Taylor Swift,NA,0.596,0.658,0,-7.346,1,0.036,0.0504,0,0.127,0.176,100.012,4,229478,FALSE,C,major,C major
1989 (Taylor's Version),Welcome To New York (Taylor's Version),Taylor Swift,NA,0.757,0.61,7,-4.84,1,0.0327,0.00942,3.66e-5,0.367,0.685,116.998,4,212600,FALSE,G,major,G major
1989 (Taylor's Version),Blank Space (Taylor's Version),Taylor Swift,NA,0.733,0.733,0,-5.376,1,0.067,0.0885,0,0.168,0.701,96.057,4,231833,FALSE,C,major,C major
1989 (Taylor's Version),Style (Taylor's Version),Taylor Swift,NA,0.511,0.822,11,-4.785,0,0.0397,4.21e-4,0.0197,0.0899,0.305,94.868,4,231000,FALSE,B,minor,B minor
1989 (Taylor's Version),Out Of The Woods (Taylor's Version),Taylor Swift,NA,0.545,0.885,0,-5.968,1,0.0447,5.37e-4,5.59e-5,0.385,0.206,92.021,4,235800,FALSE,C,major,C major
1989 (Taylor's Version),All You Had To Do Was Stay (Taylor's Version),Taylor Swift,NA,0.588,0.721,0,-5.579,1,0.0317,6.56e-4,0,0.131,0.52,96.997,4,193289,FALSE,C,major,C major
1989 (Taylor's Version),Shake It Off (Taylor's Version),Taylor Swift,NA,0.636,0.808,7,-5.693,1,0.0729,0.0121,2.18e-5,0.359,0.917,160.058,4,219209,FALSE,G,major,G major
1989 (Taylor's Version),I Wish You Would (Taylor's Version),Taylor Swift,NA,0.67,0.858,0,-6.528,1,0.0439,0.00354,1.25e-5,0.0687,0.539,118.009,4,207650,FALSE,C,major,C major
1989 (Taylor's Version),Bad Blood (Taylor's Version),Taylor Swift,NA,0.618,0.683,7,-6.438,1,0.194,0.0362,0,0.305,0.363,169.971,4,211104,FALSE,G,major,G major
1989 (Taylor's Version),Wildest Dreams (Taylor's Version),Taylor Swift,NA,0.589,0.674,8,-7.48,1,0.0656,0.0436,7.18e-5,0.112,0.514,139.985,4,220433,FALSE,G#,major,G# major
1989 (Taylor's Version),How You Get The Girl (Taylor's Version),Taylor Swift,NA,0.758,0.691,5,-5.798,1,0.0515,0.00196,1.09e-5,0.0939,0.538,119.997,4,247533,FALSE,F,major,F major
1989 (Taylor's Version),This Love (Taylor's Version),Taylor Swift,NA,0.471,0.509,1,-8.796,0,0.0355,0.316,0,0.0673,0.0567,144.071,4,250100,FALSE,C#,minor,C# minor
1989 (Taylor's Version),I Know Places (Taylor's Version),Taylor Swift,NA,0.582,0.788,0,-5.358,1,0.0445,0.0999,0,0.115,0.652,160.027,4,195700,FALSE,C,major,C major
1989 (Taylor's Version),Clean (Taylor's Version),Taylor Swift,NA,0.772,0.391,4,-8.892,1,0.0293,0.25,2.92e-5,0.0981,0.258,103.955,4,271000,FALSE,E,major,E major
1989 (Taylor's Version),Wonderland (Taylor's Version),Taylor Swift,NA,0.464,0.705,3,-5.97,1,0.0434,0.00976,2.61e-5,0.209,0.385,183.892,4,245567,FALSE,D#,major,D# major
1989 (Taylor's Version),You Are In Love (Taylor's Version),Taylor Swift,NA,0.363,0.498,9,-9.473,1,0.0755,0.61,3.91e-6,0.112,0.477,84.68,4,267389,FALSE,A,major,A major
1989 (Taylor's Version),New Romantics (Taylor's Version),Taylor Swift,NA,0.649,0.846,5,-5.958,1,0.0602,0.00675,4.63e-6,0.0824,0.698,121.978,4,230178,FALSE,F,major,F major
1989 (Taylor's Version),"""Slut!"" (Taylor's Version) [From The Vault]",Taylor Swift,NA,0.591,0.412,2,-13.27,1,0.0863,0.309,1.99e-4,0.0608,0.328,155.875,4,180381,FALSE,D,major,D major
1989 (Taylor's Version),Say Don't Go (Taylor's Version) [From The Vault],Taylor Swift,NA,0.633,0.551,4,-8.297,1,0.0341,0.066,9.94e-6,0.127,0.164,109.95,4,279833,FALSE,E,major,E major
1989 (Taylor's Version),Now That We Don't Talk (Taylor's Version) [From The Vault],Taylor Swift,NA,0.8,0.501,0,-9.332,1,0.034,0.16,7.14e-5,0.0874,0.0831,110.013,4,146437,FALSE,C,major,C major
1989 (Taylor's Version),Suburban Legends (Taylor's Version) [From The Vault],Taylor Swift,NA,0.701,0.625,0,-8.804,1,0.036,0.207,0,0.105,0.323,118.036,4,171819,FALSE,C,major,C major
1989 (Taylor's Version),Is It Over Now? (Taylor's Version) [From The Vault],Taylor Swift,NA,0.595,0.656,0,-7.343,1,0.037,0.041,0,0.122,0.191,99.994,4,229478,FALSE,C,major,C major
1989 (Taylor's Version),Bad Blood (Remix) [Taylor's Version],Taylor Swift,Kendrick Lamar,0.602,0.648,2,-6.905,1,0.103,0.0104,0,0.217,0.174,170.091,4,199773,FALSE,D,major,D major
reputation,...Ready For It?,Taylor Swift,NA,0.613,0.764,2,-6.509,1,0.136,0.0527,0,0.197,0.417,160.015,4,208187,FALSE,D,major,D major
reputation,End Game,Taylor Swift,"Ed Sheeran, Future",0.649,0.589,2,-6.237,1,0.0558,0.00845,0,0.108,0.151,159.073,4,244827,FALSE,D,major,D major
reputation,I Did Something Bad,Taylor Swift,NA,0.696,0.602,0,-6.156,0,0.159,0.0679,2.11e-5,0.0696,0.305,82.989,4,238253,FALSE,C,minor,C minor
Expand Down
22 changes: 13 additions & 9 deletions data-raw/taylor-lyrics.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ base_info <- lyrics %>%
"[Taylor's Version]"),
track_name = str_replace_all(track_name, "Tv Ftv",
"(Taylor's Version) [From The Vault]"),
track_name = str_replace_all(track_name, "Rmx Tv",
"(Remix) [Taylor's Version]"),
track_name = str_replace_all(track_name, "(?<=\\)\\ )Tv",
"[Taylor's Version]"),
track_name = str_replace_all(track_name, "Tv",
Expand Down Expand Up @@ -276,8 +278,7 @@ spotify <- tribble(
"Red", "1KlU96Hw9nlvqpBPlSqcTV",
"Red (Taylor's Version)", "6kZ42qRrzov54LcAk4onW9",
"1989", "34OkZVpuzBa9y40DCy0LPR",
# "1989 (Taylor's Version)", "1o59UpKw81iHR0HPiSkJR0",
"1989 (Taylor's Version)", "64LU4c1nfjz1t4VnGhagcg",
"1989 (Taylor's Version)", "1o59UpKw81iHR0HPiSkJR0",
"reputation", "6DEjYFkNZh67HP7R9PSZvv",
"Lover", "1NAmidJlEaVgA3MpcPFYGq",
"folklore", "1pzvBxYgT6OVwJLtHkrdQK",
Expand Down Expand Up @@ -338,6 +339,9 @@ spotify_join <- spotify %>%
track_name = str_replace(track_name,
fixed("Karma (Feat. Ice Spice)"),
"Karma (Remix)"),
track_name = str_replace(track_name,
fixed("Bad Blood (Feat. Kendrick Lamar)"),
"Bad Blood (Remix)"),
track_name = str_replace(track_name,
"\\ \\([f|F]eat\\.\\ [^\\(\\)]*\\)", "")
) %>%
Expand Down Expand Up @@ -386,13 +390,13 @@ spotify_join <- spotify %>%

# QC for data ------------------------------------------------------------------
# Check for tracks missing from Spotify
# Ideally should return 0 rows. 13 rows currently expected:
# 1-2 Two 1989 (Taylor's Version) deluxe tracks are not on Spotify
# 3-4 Two Midnights bonus tracks exclusive to Target are not on Spotify
# 5 Midnight bonus track exclusive to the Late Night Edition
# 6-11 Beautiful Eyes is not currently available on Spotify or any service
# 12 American Girl is exclusive to Napster
# 13 Three Sad Virgins is not available on Spotify
# Ideally should return 0 rows. 12 rows currently expected:
# 1 Sweeter Than Fiction (Taylor's Version) only on Target Tangerine
# 2-3 Two Midnights bonus tracks exclusive to Target are not on Spotify
# 4 Midnight bonus track exclusive to the Late Night Edition
# 5-10 Beautiful Eyes is not currently available on Spotify or any service
# 11 American Girl is exclusive to Napster
# 12 Three Sad Virgins is not available on Spotify
(missing <- base_info %>%
left_join(spotify_join, by = c("album_name", "track_name")) %>%
filter(map_lgl(spotify, is.null)) %>%
Expand Down
Binary file modified data/taylor_album_songs.rda
Binary file not shown.
Binary file modified data/taylor_all_songs.rda
Binary file not shown.

0 comments on commit 1ac675f

Please sign in to comment.