michelderooij / Get-EventSession

Script to assist in downloading Microsoft event contents or return session information.
MIT License
69 stars 29 forks source link

Unable to download session cache - latest build #30

Closed FlattusBlastus closed 1 year ago

FlattusBlastus commented 1 year ago

Reading Ignite2022 session catalog  : The term 'Â' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At E:\I\Get-EventSession.ps1:1157 char:1 +   [int32] $remainder = 0 + ~

 : The term 'Â' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At E:\I\Get-EventSession.ps1:1158 char:1

[ref] cannot be applied to a variable that does not exist. At E:\I\Get-EventSession.ps1:1159 char:13

Reading information for 2154 sessions Storing session information There are 0 sessions matching your criteria. Background download jobs have finished Selected 0 sessions out of a total of 0 Downloaded 0 slide decks and 0 videos. Not (yet) available: 0 slide decks and 0 videos Skipped 0 slide decks and 0 videos as they were already downloaded.

michelderooij commented 1 year ago

Where does that  come from? Don't see any 'hidden' character in there. How did you obtain the script file itself, pull or copy/paste from here or something else?

FlattusBlastus commented 1 year ago

Downloaded zip from GitHub. Extracted .PS1 to working folder. Executed.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Michel de Rooij @.> Sent: Monday, May 1, 2023 10:06:41 AM To: michelderooij/Get-EventSession @.> Cc: FlattusBlastus @.>; Author @.> Subject: Re: [michelderooij/Get-EventSession] Unable to download session cache - latest build (Issue #30)

Where does that  come from? Don't see any 'hidden' character in there. How did you obtain the script file itself, pull or copy/paste from here or something else?

— Reply to this email directly, view it on GitHubhttps://github.com/michelderooij/Get-EventSession/issues/30#issuecomment-1529959529, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASVVEUBUN7BTN3PTK7BJP7DXD7USDANCNFSM6AAAAAAXR6RVUQ. You are receiving this because you authored the thread.Message ID: @.***>

michelderooij commented 1 year ago

ZIp, that old release? (2.x) Fetch the raw script from here and try again (after unblocking it) https://raw.githubusercontent.com/michelderooij/Get-EventSession/master/Get-EventSession.ps1

FlattusBlastus commented 1 year ago

Grabbed that. Got the zip again too. That weird behavior with the A is gone. But....

PS E:\I> .\Get-EventSession.ps1 -DownloadFolder E:\I\Ignite2022 -Format bestvideo+bestaudio -Event Ignite2022 -MaxDownloadJobs 1 -Captions -Subs en -NoRepeats No proxy setting detected, using direct connection Using download path: E:\I\Ignite2022 Running self-update of youtube-dl.exe Available version: @., Current version: @. Current Build Hash: 5590c57bd0433ed239a2deaaf92e2ad6f37fe50f53664c821575cafe106a9421 yt-dlp is up to date @.***)

ffmpeg.exe located at E:\I\ffmpeg.exe Session cache file found, reading session information There are 0 sessions matching your criteria. Background download jobs have finished Selected 0 sessions out of a total of 0 Downloaded 0 slide decks and 0 videos. Not (yet) available: 0 slide decks and 0 videos Skipped 0 slide decks and 0 videos as they were already downloaded.

On Mon, May 1, 2023 at 10:36 AM Michel de Rooij @.***> wrote:

ZIp, that old release? (2.x) Fetch the raw script from here and try again

https://raw.githubusercontent.com/michelderooij/Get-EventSession/master/Get-EventSession.ps1

— Reply to this email directly, view it on GitHub https://github.com/michelderooij/Get-EventSession/issues/30#issuecomment-1529989260, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVVEUHZT3MR234NNR6K233XD7YCRANCNFSM6AAAAAAXR6RVUQ . You are receiving this because you authored the thread.Message ID: @.***>

michelderooij commented 1 year ago

The script caches the session information as retrieving the catalog takes a while. During the previous run - which failed - you are likely left with an empty session cache file. Use the switch -Refresh to force downloading the session information, or throw away the file (Ignite2022-Sessions.cache), and run Get-EventSession again.

FlattusBlastus commented 1 year ago

Deleting the cache files looks to be working. Script is functioning as expected. A question: I notice a lot of the videos are *.mp4.webm. I haven't seen this before in previous years. Is this expected?

michelderooij commented 1 year ago

No. Which session from last year's Ignite is having this ?

FlattusBlastus commented 1 year ago

Nearly all of them. a couple are *.mp4.mkv. .\Get-EventSession.ps1 -DownloadFolder E:\I\Ignite -Format bestvideo+bestaudio -Event Ignite -MaxDownloadJobs 1 -Captions -Subs en -NoRepeats

FlattusBlastus commented 1 year ago

ls *.webm | rename-item -newname { $_.basename }

Gets rid of all the .webm extensions in the directory.

michelderooij commented 1 year ago

I see, seems specifying subs - adding parameters to download subtitles - seems to trigger that. I'll reopen this.

michelderooij commented 1 year ago

Could repro - was a invisible character in the previous line. Fixed in 3.96