After splitting it by those characters, we get the last variable, which includes the ID, using ‘Get Item from List’.ģ️⃣ The next split for that variable is by & since additional attributes are after ampersands. Our goal is to narrow down to just the video’s ID, which always comes directly after the ?v= characters in the URL. Since we can’t rely on the shared URL to be a link, the first step is to expand the URL out in case it’s a bit.ly or youtu.be version.Ģ️⃣ Once we have the full-length URL, we make the first of two splits using the ‘Split Text’ action. That pulls the ‘Shortcut Input’ variable, which was either passed into the shortcut or retrieved from the clipboard. Instead of putting together a longer URL by combining one with another, this time I needed to break down the canonical YouTube link for the video.ġ️⃣ To make sure we’re working with a real link and not just text, we use a ‘Get URLs from Input’ action. This time around, I used very different techniques to build the embed code. Get the ’Copy as Embedded YouTube Video’ shortcut → Original Version | Latest Version So, I give you a new shortcut that accomplishes a similar task, but in a different way. Since I also share a lot of videos in those weekly posts, I wanted a similar solution for embedding videos without having to click through the YouTube website. That shortcut let me get the proper HTML for embedding a live Tweet right from the Share Sheet. ⌘ JanuShortcuts Tips: Copy as Embedded YouTube VideoĪs a follow-on to my ‘Copy as Embedded Tweet’ shortcut that I made last year, I set out to further improve my workflow for preparing posts for 7 Things.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |