Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download session cache - latest build #30

Closed
FlattusBlastus opened this issue May 1, 2023 · 11 comments
Closed

Unable to download session cache - latest build #30

FlattusBlastus opened this issue May 1, 2023 · 11 comments
Assignees

Comments

@FlattusBlastus
Copy link

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 + ~
+ CategoryInfo : ObjectNotFound: (Â:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 : 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

  • Â
  • ~
    • CategoryInfo : ObjectNotFound: (Â:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

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

  •         $PageCount = [System.Math]::DivRem($sessionCount, $web.it ...
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (remainder:VariablePath) [], RuntimeException
    • FullyQualifiedErrorId : NonExistingVariableReference

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
Copy link
Owner

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
Copy link
Author

FlattusBlastus commented May 1, 2023 via email

@michelderooij
Copy link
Owner

michelderooij commented May 1, 2023

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
Copy link
Author

FlattusBlastus commented May 1, 2023 via email

@michelderooij
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@FlattusBlastus
Copy link
Author

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
Copy link
Author

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

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

@michelderooij
Copy link
Owner

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

@michelderooij michelderooij reopened this May 3, 2023
@michelderooij michelderooij self-assigned this May 25, 2023
@michelderooij
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants