File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . IO ;
4
- using System . Linq ;
5
- using System . Threading ;
6
- using System . Xml . Linq ;
7
4
8
5
namespace SporeDownloader
9
6
{
@@ -25,9 +22,7 @@ public Queue<long> getAllAssetIds()
25
22
26
23
var assetIds = new Queue < long > ( ) ;
27
24
28
-
29
- var doc = server . getSporecastFeed ( Id ) . Element ( "{http://www.w3.org/2005/Atom}feed" ) ; //.Elements().FirstOrDefault()?.Elements().FirstOrDefault();
30
- Console . WriteLine ( doc ? . ToString ( ) ) ;
25
+ var doc = server . getSporecastFeed ( Id ) . Element ( "{http://www.w3.org/2005/Atom}feed" ) ;
31
26
32
27
if ( doc is not null )
33
28
{
@@ -47,7 +42,6 @@ public Queue<long> getAllAssetIds()
47
42
Console . WriteLine ( $ "Found no assets for sporecast { Id } , feed did not exist") ;
48
43
}
49
44
50
-
51
45
return assetIds ;
52
46
}
53
47
@@ -67,14 +61,14 @@ public void downloadAllAssets(String filePath)
67
61
foreach ( var id in assetIds )
68
62
{
69
63
server . downloadAssetPng ( id , filePath + id + ".png" ) ;
70
- try
64
+ /* try
71
65
{
72
66
server.getAssetInfo(id).Save(filePath + id + "_meta.xml");
73
67
}
74
68
catch (System.Xml.XmlException)
75
69
{
76
70
Console.WriteLine($"Asset ID {id} for sporecast {Id} has invalid data in its Spore.com XML data, this data will not be saved");
77
- }
71
+ }*/
78
72
79
73
Console . WriteLine ( $ "Saved asset ID { id } for sporecast { Id } ") ;
80
74
}
You can’t perform that action at this time.
0 commit comments