Skip to content

Commit 58f255e

Browse files
committed
v1.7.2
1 parent f31da0d commit 58f255e

File tree

8 files changed

+412
-386
lines changed

8 files changed

+412
-386
lines changed

Loopstream/LSSettings.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ public void initFinally()
737737

738738
if (triggers.Count == 0)
739739
resetTriggers();
740-
740+
741741
wavetailer.setFormat();
742742
LSSettings.singleton = this;
743743

@@ -899,8 +899,8 @@ public void resetMetas()
899899
"Traktor plugin (does VirtualDJ too)",
900900
"http://127.0.0.1:42069/statuls.xsl",
901901
1000,
902-
"\\n<h42>( - )?([^\\n]*)</h42>\\n",
903-
"{2}",
902+
"\\n<h42>( - )?([^\\n<]*)\\n*([^\\n<]*)\\n*([^<]*)</h42>\\n",
903+
"{2}{3}{4}",
904904
"utf-8",
905905
true,
906906
1,

Loopstream/Loopstream.csproj

Lines changed: 369 additions & 360 deletions
Large diffs are not rendered by default.

Loopstream/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.7.1.0")]
36-
[assembly: AssemblyFileVersion("1.7.1.0")]
35+
[assembly: AssemblyVersion("1.7.2.0")]
36+
[assembly: AssemblyFileVersion("1.7.2.0")]

Loopstream/UI_Home.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ void plowTheFields()
11971197
wd = wd.Substring(0, wd.Replace('\\', '/').LastIndexOf('/') + 1);
11981198
icebase = icebase.Substring(0, icebase.LastIndexOf('.')) + "Traktor";
11991199
var ices = new string[] {
1200+
icebase + "3.exe",
12001201
icebase + "2.exe",
12011202
icebase + ".exe"
12021203
};

LoopstreamTraktor/Form1.cs

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,31 @@ void t_Tick(object sender, EventArgs e)
176176
if (procs.Length > 0) Program.kill();
177177

178178
string basedir = Program.tools + "ice";
179-
if (Directory.Exists(basedir) && !File.Exists(Path.Combine(basedir, "web", "statuls.xsl")))
180-
for (int a = 0; a < 3; a++)
181-
try
182-
{
183-
Directory.Delete(basedir, true);
184-
Application.DoEvents();
185-
System.Threading.Thread.Sleep(500); // mkdir fails otherwise, ok yes good
186-
break;
187-
}
188-
catch
189-
{
190-
Application.DoEvents();
191-
System.Threading.Thread.Sleep(250);
192-
}
179+
if (Directory.Exists(basedir))
180+
{
181+
bool ok = false;
182+
try
183+
{
184+
var txt = File.ReadAllText(Path.Combine(basedir, "web", "statuls.xsl"), Encoding.UTF8);
185+
ok = txt.Contains("artist\" /> - </xsl:if><xsl");
186+
}
187+
catch { }
188+
189+
if (!ok)
190+
for (int a = 0; a < 3; a++)
191+
try
192+
{
193+
Directory.Delete(basedir, true);
194+
Application.DoEvents();
195+
System.Threading.Thread.Sleep(500); // mkdir fails otherwise, ok yes good
196+
break;
197+
}
198+
catch
199+
{
200+
Application.DoEvents();
201+
System.Threading.Thread.Sleep(250);
202+
}
203+
}
193204

194205
if (!Directory.Exists(basedir))
195206
{

LoopstreamTraktor/LoopstreamTraktor.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@
114114
<Content Include="ice_cube.ico" />
115115
</ItemGroup>
116116
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
117+
<PropertyGroup>
118+
<PreBuildEvent>
119+
</PreBuildEvent>
120+
</PropertyGroup>
121+
<PropertyGroup>
122+
<PostBuildEvent>LoopstreamTraktor.exe sign
123+
ping 127.0.0.1 -n 2 &gt;nul
124+
copy /Y LoopstreamTraktor.exe.exe c:\users\ed\bin\rls\LoopstreamTraktor3.exe
125+
</PostBuildEvent>
126+
</PropertyGroup>
117127
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
118128
Other similar extension points exist, see Microsoft.Common.targets.
119129
<Target Name="BeforeBuild">

LoopstreamTraktor/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ public static void kill()
5353
}
5454
}
5555

56-
// LoopstreamTraktor.exe sign && ping 127.0.0.1 -n 2 >nul && copy /Y LoopstreamTraktor.exe.exe c:\users\ed\bin\rls\LoopstreamTraktor2.exe
56+
// LoopstreamTraktor.exe sign && ping 127.0.0.1 -n 2 >nul && copy /Y LoopstreamTraktor.exe.exe c:\users\ed\bin\rls\LoopstreamTraktor3.exe

LoopstreamTraktor/tools/ice/web/statuls.xsl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55

66
<xsl:for-each select="source">
77
<xsl:text>&#xa;</xsl:text>
8-
<h42>
9-
<xsl:if test="artist">
10-
<xsl:value-of select="artist" /> -
11-
</xsl:if>
12-
<xsl:value-of select="title" />
13-
</h42>
8+
<h42><xsl:if test="artist"><xsl:value-of select="artist" /> - </xsl:if><xsl:value-of select="title" /></h42>
149
<xsl:text>&#xa;</xsl:text>
1510
</xsl:for-each>
1611

0 commit comments

Comments
 (0)