تبدیل زیرنویسهای خاص پلورالسایت به فرمت SRT - قسمت دوم
نویسنده: وحید نصیری
تاریخ: ۱۳۹۵/۰۱/۳۰ ۱۵:۱۰
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
{
"userIsAuthorizedForCourseTranscripts": false,
"modules": [
{
"title": "Course Overview",
"clips": [
{
"title": "Course Overview",
"playerParameters": "author=scott-allen&name=aspdotnet-core-1-0-fundamentals-m0&mode=live&clip=0&course=aspdotnet-core-1-0-fundamentals",
"transcripts": [ ]
}
]
},
{
"title": "Building Your First ASP.NET Core Application",
"clips": [
{
"title": "Introduction",
"playerParameters": "author=scott-allen&name=aspdotnet-core-1-0-fundamentals-m1&mode=live&clip=0&course=aspdotnet-core-1-0-fundamentals",
"transcripts": [
{
"displayTime": 0.0,
"text": "Hi! This is Scott, and this course will help you build your first application with ASP.NET Core."
},
{
"displayTime": 7.0,
"text": "In this course, we'll be using Visual Studio and the new ASP.NET Framework to build a web application that"
}
]
}
]
}
]
} public class PluralsightCourse
{
public bool UserIsAuthorizedForCourseTranscripts { get; set; }
public PluralsightCourseItems[] Modules { get; set; }
}
public class PluralsightCourseItems
{
public string Title { get; set; }
public PluralsightCourseClip[] Clips { get; set; }
}
public class PluralsightCourseClip
{
public string Title { get; set; }
public string PlayerParameters { get; set; }
public PluralsightCourseClipTranscript[] Transcripts { get; set; }
}
public class PluralsightCourseClipTranscript
{
public float DisplayTime { get; set; }
public string Text { get; set; }
}
public static PluralsightCourse ProcessJsonFile(string jsonData)
{
return JsonConvert.DeserializeObject<PluralsightCourse>(jsonData);
}
public string GetTranscriptsUrl()
{
var courseName = getCourseName();
return $"http://app.pluralsight.com/data/course/transcript/{courseName}/en";
} public string GetTranscriptsUrl()
{
var courseName = getCourseName();
return $"http://app.pluralsight.com/data/course/transcript/{courseName}/fa";
} using (var webClient = new WebClient { Encoding = Encoding.UTF8 })