private int GetVideoHeight() { int videoHeight = 0; if (AniDB_File_VideoResolution.Trim().Length > 0) { string[] dimensions = AniDB_File_VideoResolution.Split('x'); if (dimensions.Length > 1) { int.TryParse(dimensions[1], out videoHeight); } } return(videoHeight); }
public int GetVideoWidth() { int videoWidth = 0; if (AniDB_File_VideoResolution.Trim().Length > 0) { string[] dimensions = AniDB_File_VideoResolution.Split('x'); if (dimensions.Length > 0) { int.TryParse(dimensions[0], out videoWidth); } } return(videoWidth); }