Initial work for import from panopto
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module Panopto
|
||||
# @param [String] folder_id
|
||||
def self.list_folder(folder_id)
|
||||
HTTParty.get("https://lectures.joshuacoles.me/list", query: {
|
||||
folderId: folder_id
|
||||
})
|
||||
end
|
||||
end
|
||||
@@ -18,6 +18,8 @@ class Lecture < ApplicationRecord
|
||||
end
|
||||
|
||||
def recording_url
|
||||
"https://google.com"
|
||||
return nil if recording_id.nil?
|
||||
|
||||
"https://uniofbath.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=#{recording_id}"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user