mAgicAnime 俺用改造版
Revisão | 4a18770599868d431860c3b9c0da6eb33e112e5f (tree) |
---|---|
Hora | 2019-11-24 18:55:13 |
Autor | yoshy <yoshy@user...> |
Commiter | yoshy |
[UPD] fix.版にもななし版の一部機能を取り込み(以下)
[ADD] ver.7sh 2.0.14.1 話数が割り当てられていないデータも1話として扱うようにした
[FIX] ver.7sh 2.0.14.1 エンコード失敗時にファイルを削除しないようにした
[FIX] ver.7sh 2.0.14.3 ウィンドウサイズが極端に小さくならないように限定した
[ADD] ver.7sh 2.0.14.4 タイトルバーにVer.7shを追加
[ADD] ver.7sh 2.0.14.5 番組プロパティの上部のURLでブラウザを開くようにした
@@ -33,10 +33,10 @@ namespace Helpers | ||
33 | 33 | name = name.Replace( ':', ':' ); |
34 | 34 | name = name.Replace( ':', ':' ); |
35 | 35 | name = name.Replace( '\"', '”' ); |
36 | -// mod. yossiepon_20151025 begin | |
36 | + // add yossiepon 20151025 begin | |
37 | 37 | name = name.Replace( '|', '|' ); |
38 | 38 | name = name.Replace( '%', '%' ); |
39 | -// mod. yossiepon_20151025 end | |
39 | + // add yossiepon 20151025 end | |
40 | 40 | |
41 | 41 | // 無効な文字を削除する |
42 | 42 | name = name.TrimStart( Path.GetInvalidFileNameChars() ); |
@@ -331,6 +331,9 @@ namespace magicAnime.RecordingManager.EncodeManager.CmdLineEncoder | ||
331 | 331 | |
332 | 332 | process.WaitForExit(); |
333 | 333 | |
334 | + if (process.ExitCode != 0) | |
335 | + throw new Exception("エンコードに失敗した (終了コード: " + process.ExitCode + ")"); | |
336 | + | |
334 | 337 | if (abortEncode) |
335 | 338 | throw new AbortException(); |
336 | 339 |
@@ -126,8 +126,6 @@ namespace User32API | ||
126 | 126 | |
127 | 127 | gctext.Free(); |
128 | 128 | |
129 | - string aa; | |
130 | - | |
131 | 129 | text = Encoding.GetEncoding( 932 ).GetString( buffer, 0, 250 ); |
132 | 130 | |
133 | 131 | Console.Write( text ); |
@@ -132,6 +132,7 @@ | ||
132 | 132 | this.linkLabel2.TabIndex = 6; |
133 | 133 | this.linkLabel2.TabStop = true; |
134 | 134 | this.linkLabel2.Text = "しょぼいカレンダー(http://cal.syoboi.jp/)"; |
135 | + this.linkLabel2.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel2_LinkClicked); | |
135 | 136 | // |
136 | 137 | // label17 |
137 | 138 | // |
@@ -562,7 +562,7 @@ namespace magicAnime | ||
562 | 562 | if (mInputTitle != null) |
563 | 563 | { |
564 | 564 | titleTextBox.Text = mInputTitle; |
565 | - mInputTitle= null; | |
565 | + mInputTitle = null; | |
566 | 566 | } |
567 | 567 | } |
568 | 568 | }; |
@@ -659,6 +659,7 @@ namespace magicAnime | ||
659 | 659 | |
660 | 660 | dlg.ShowDialog(); |
661 | 661 | } |
662 | + | |
662 | 663 | //========================================================================= |
663 | 664 | /// <summary> |
664 | 665 | /// コントロールの状態更新 |
@@ -681,6 +682,27 @@ namespace magicAnime | ||
681 | 682 | recordTvStationCheckBox.Enabled = mLinkOnline; |
682 | 683 | } |
683 | 684 | |
685 | + //========================================================================= | |
686 | + /// <summary> | |
687 | + /// しょぼカルを開く | |
688 | + /// </summary> | |
689 | + /// <remarks> | |
690 | + /// </remarks> | |
691 | + /// <history>2012/03/19 新規作成</history> | |
692 | + //========================================================================= | |
693 | + private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) | |
694 | + { | |
695 | + int tid = (int)syoboiTidUpdown.Value; | |
696 | + if (tid != 0) | |
697 | + { | |
698 | + System.Diagnostics.Process.Start("http://cal.syoboi.jp/tid/" + tid.ToString()); | |
699 | + } | |
700 | + else | |
701 | + { | |
702 | + System.Diagnostics.Process.Start("http://cal.syoboi.jp/"); | |
703 | + } | |
704 | + } | |
705 | + | |
684 | 706 | } |
685 | 707 | |
686 | 708 | } |
@@ -37,7 +37,7 @@ namespace magicAnime | ||
37 | 37 | Settings.Default.dayPast = (int)dayPastUpdown.Value; |
38 | 38 | Settings.Default.dayFuture = (int)dayFutureUpdown.Value; |
39 | 39 | Settings.Default.weekPast = (int)weekPastUpdown.Value; |
40 | - Settings.Default.weekFuture= (int)weekFutureUpdown.Value; | |
40 | + Settings.Default.weekFuture = (int)weekFutureUpdown.Value; | |
41 | 41 | |
42 | 42 | this.DialogResult = DialogResult.OK; |
43 | 43 |
@@ -1221,6 +1221,7 @@ | ||
1221 | 1221 | this.Shown += new System.EventHandler(this.MainForm_Shown); |
1222 | 1222 | this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); |
1223 | 1223 | this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); |
1224 | + this.Resize += new System.EventHandler(this.MainForm_Resize); | |
1224 | 1225 | ((System.ComponentModel.ISupportInitialize)(this.filePictureBox)).EndInit(); |
1225 | 1226 | ((System.ComponentModel.ISupportInitialize)(this.titlePictureBox)).EndInit(); |
1226 | 1227 | ((System.ComponentModel.ISupportInitialize)(this.statusPictureBox)).EndInit(); |
@@ -3037,6 +3037,23 @@ namespace magicAnime | ||
3037 | 3037 | } |
3038 | 3038 | } |
3039 | 3039 | |
3040 | + // add 7sh 2.0.14.10 2012-03-30 begin | |
3041 | + //========================================================================= | |
3042 | + /// <summary> | |
3043 | + /// リサイズの限定 | |
3044 | + /// </summary> | |
3045 | + /// <remarks> | |
3046 | + /// </remarks> | |
3047 | + /// <history>2012/02/23 新規作成</history> | |
3048 | + //======================================================================== | |
3049 | + private void MainForm_Resize(object sender, EventArgs e) | |
3050 | + { | |
3051 | + if (this.WindowState == FormWindowState.Minimized) { return; } | |
3052 | + if (this.Width < 758) { this.Width = 758; } | |
3053 | + if (this.Height < 310) { this.Height = 310; } | |
3054 | + } | |
3055 | + // add 7sh 2.0.14.10 2012-03-30 end | |
3056 | + | |
3040 | 3057 | // add yossiepon 20160924 begin |
3041 | 3058 | //========================================================================= |
3042 | 3059 | /// <summary> |